diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-17 10:23:51 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-02-24 15:10:55 +0100 |
commit | 4822c8bc568b46088bffda77c42454df55819481 (patch) | |
tree | 6653781a05d31a915c7ad08e9db3cf1ce75b1904 /tests | |
parent | 6808407dcf22dd55fc764f4658585495c6bdc96c (diff) |
isup: Make isup CIC parsing/using work on big endian machines as well
This is a hot fix to make CIC reading (and later status) work on
big endian machines. There might be a more elegant way to do it
and I will explore this later.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/isup/isup_parse_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/isup/isup_parse_test.c b/tests/isup/isup_parse_test.c index 4010fcf..7e116b3 100644 --- a/tests/isup/isup_parse_test.c +++ b/tests/isup/isup_parse_test.c @@ -38,7 +38,7 @@ static void test_cic_parsing() printf("Testing CIC parsing.\n"); hdr = (struct isup_msg_hdr *) isup_grs; - ASSERT(hdr->cic, 3); + ASSERT(isup_cic_to_local(hdr), 3); ASSERT(hdr->msg_type, ISUP_MSG_GRS); } @@ -53,7 +53,7 @@ static void test_grs_parsing() hdr = (struct isup_msg_hdr *) isup_grs; range = isup_parse_status(&hdr->data[0], 3); - ASSERT(hdr->cic, 3); + ASSERT(isup_cic_to_local(hdr), 3); ASSERT(hdr->msg_type, ISUP_MSG_GRS); ASSERT(range, 28); } @@ -70,7 +70,7 @@ static void test_gra_parsing() printf("Testing GRA parsing.\n"); hdr = (struct isup_msg_hdr *) isup_gra; range = isup_parse_status(&hdr->data[0], 3); - ASSERT(hdr->cic, 2); + ASSERT(isup_cic_to_local(hdr), 2); ASSERT(hdr->msg_type, ISUP_MSG_GRA); ASSERT(range, 29); } @@ -82,7 +82,7 @@ static void test_rsc_parsing() printf("Testing RSC parsing.\n"); hdr = (struct isup_msg_hdr *) isup_rsc; - ASSERT(hdr->cic, 1); + ASSERT(isup_cic_to_local(hdr), 1); ASSERT(hdr->msg_type, ISUP_MSG_RSC); } |