Change in osmo-iuh[master]: tests/hnb-test-ranap: Fix incorrect pointer type cast

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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Jan 14 13:38:27 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-iuh/+/22168 )

Change subject: tests/hnb-test-ranap: Fix incorrect pointer type cast
......................................................................

tests/hnb-test-ranap: Fix incorrect pointer type cast

osmo_hexdump expect it to be a const unsigned char*, and gcc warns about
incorrect signedness.

Change-Id: I7e0622f502a4442d700340b0f1c2f8cd01e90ecd
---
M src/tests/hnb-test-ranap.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/tests/hnb-test-ranap.c b/src/tests/hnb-test-ranap.c
index 517e1a3..fe7db48 100644
--- a/src/tests/hnb-test-ranap.c
+++ b/src/tests/hnb-test-ranap.c
@@ -5,7 +5,7 @@
 
 static const char *printstr(OCTET_STRING_t *s)
 {
-	return osmo_hexdump((char*)s->buf, s->size);
+	return osmo_hexdump((const unsigned char*)s->buf, s->size);
 }
 
 #define PP(octet_string_t) \

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/22168
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I7e0622f502a4442d700340b0f1c2f8cd01e90ecd
Gerrit-Change-Number: 22168
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210114/9d1e1226/attachment.htm>


More information about the gerrit-log mailing list