aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-23 18:17:02 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-29 17:52:08 +0000
commit6df7a4a6ee80a79b6512997b4ecdbde304905f7e (patch)
treefd98cdc1f784f22f9ea0c59ea6b7bc86fc4c5e76
parent81c0bcab068174036f6897e69311f413d94c74d4 (diff)
fix compiler warning: xua_test: hexdump pointer type
Was recently introduced by a70b4599f63b50c4d654eb9e1b1a099a7c8cdc36. Change-Id: Iab5529f6919fd22902a8b39e8a52079f08deb851
-rw-r--r--tests/xua/xua_test.c4
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(&gt_out, msgb_data(msg), msgb_length(msg));
printf("OUT:%s\n", osmo_sccp_gt_dump(&gt_out));
- printf(" %s\n", osmo_hexdump_nospc(&gt_out, sizeof(struct osmo_sccp_gt)));
+ printf(" %s\n", osmo_hexdump_nospc((const unsigned char*)&gt_out, sizeof(struct osmo_sccp_gt)));
OSMO_ASSERT(!memcmp(gt_in, &gt_out, sizeof(gt_out)));
msgb_free(msg);