diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-06-23 18:17:02 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-06-29 17:52:08 +0000 |
commit | 6df7a4a6ee80a79b6512997b4ecdbde304905f7e (patch) | |
tree | fd98cdc1f784f22f9ea0c59ea6b7bc86fc4c5e76 /tests/xua | |
parent | 81c0bcab068174036f6897e69311f413d94c74d4 (diff) |
fix compiler warning: xua_test: hexdump pointer type
Was recently introduced by a70b4599f63b50c4d654eb9e1b1a099a7c8cdc36.
Change-Id: Iab5529f6919fd22902a8b39e8a52079f08deb851
Diffstat (limited to 'tests/xua')
-rw-r--r-- | tests/xua/xua_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/xua/xua_test.c b/tests/xua/xua_test.c index 4af0836..c496cc4 100644 --- a/tests/xua/xua_test.c +++ b/tests/xua/xua_test.c @@ -155,7 +155,7 @@ static void test_helpers(void) printf("Testing Decoded GT -> SUA encoding\n"); printf("IN: %s\n", osmo_sccp_gt_dump(gt_in)); - printf(" %s\n", osmo_hexdump_nospc(gt_in, sizeof(struct osmo_sccp_gt))); + printf(" %s\n", osmo_hexdump_nospc((const unsigned char*)gt_in, sizeof(struct osmo_sccp_gt))); /* encode sccp_addr to SUA GT */ xua_part_add_gt(msg, gt_in); @@ -168,7 +168,7 @@ static void test_helpers(void) /* parse + compare */ sua_parse_gt(>_out, msgb_data(msg), msgb_length(msg)); printf("OUT:%s\n", osmo_sccp_gt_dump(>_out)); - printf(" %s\n", osmo_hexdump_nospc(>_out, sizeof(struct osmo_sccp_gt))); + printf(" %s\n", osmo_hexdump_nospc((const unsigned char*)>_out, sizeof(struct osmo_sccp_gt))); OSMO_ASSERT(!memcmp(gt_in, >_out, sizeof(gt_out))); msgb_free(msg); |