From 6df7a4a6ee80a79b6512997b4ecdbde304905f7e Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 23 Jun 2017 18:17:02 +0200 Subject: fix compiler warning: xua_test: hexdump pointer type Was recently introduced by a70b4599f63b50c4d654eb9e1b1a099a7c8cdc36. Change-Id: Iab5529f6919fd22902a8b39e8a52079f08deb851 --- tests/xua/xua_test.c | 4 ++-- 1 file 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); -- cgit v1.2.3