[PATCH] libosmo-sccp[master]: fix compiler warning: xua_test: hexdump pointer type

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Jun 23 16:17:39 UTC 2017


Review at  https://gerrit.osmocom.org/3030

fix compiler warning: xua_test: hexdump pointer type

Was recently introduced by a70b4599f63b50c4d654eb9e1b1a099a7c8cdc36.

Change-Id: Iab5529f6919fd22902a8b39e8a52079f08deb851
---
M tests/xua/xua_test.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/30/3030/1

diff --git a/tests/xua/xua_test.c b/tests/xua/xua_test.c
index 4af0836..3e6d468 100644
--- a/tests/xua/xua_test.c
+++ b/tests/xua/xua_test.c
@@ -155,7 +155,7 @@
 
 	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((void*)gt_in, sizeof(struct osmo_sccp_gt)));
 
 	/* encode sccp_addr to SUA GT */
 	xua_part_add_gt(msg, gt_in);
@@ -168,7 +168,7 @@
 	/* 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((void*)&gt_out, sizeof(struct osmo_sccp_gt)));
 	OSMO_ASSERT(!memcmp(gt_in, &gt_out, sizeof(gt_out)));
 
 	msgb_free(msg);

-- 
To view, visit https://gerrit.osmocom.org/3030
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iab5529f6919fd22902a8b39e8a52079f08deb851
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list