Move a comment closer to where it has relevance.

git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1547 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Richard Mudgett
2010-03-18 15:50:19 +00:00
parent d5d69dddac
commit ba4d759752

9
q931.c
View File

@@ -602,11 +602,6 @@ void q931_party_subaddress_copy_to_pri(struct pri_party_subaddress *pri_subaddre
{
int length;
/*
* The size of pri_subaddress->data[] is not the same as the size of
* q931_subaddress->data[].
*/
if (!q931_subaddress->valid) {
pri_subaddress->valid = 0;
pri_subaddress->type = 0;
@@ -620,6 +615,10 @@ void q931_party_subaddress_copy_to_pri(struct pri_party_subaddress *pri_subaddre
pri_subaddress->type = q931_subaddress->type;
pri_subaddress->odd_even_indicator = q931_subaddress->odd_even_indicator;
/*
* The size of pri_subaddress->data[] is not the same as the size of
* q931_subaddress->data[].
*/
length = q931_subaddress->length;
pri_subaddress->length = length;
memcpy(pri_subaddress->data, q931_subaddress->data, length);