fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27863 )
Change subject: utils/meas_pcap2db: fix -Wpointer-sign in pcap_cb() ...................................................................... utils/meas_pcap2db: fix -Wpointer-sign in pcap_cb() When building with CFLAGS="-flto -Wall", I get the following: meas_pcap2db.c: In function ‘pcap_cb’: meas_pcap2db.c:64:27: warning: pointer targets in initialization of ‘const char *’ from ‘const u_char *’ {aka ‘const unsigned char *’} differ in signedness [-Wpointer-sign] 64 | const char *cur = bytes; Change-Id: I84d8e6f290bda0f03476f182f292ecc7a9e520f2 --- M src/utils/meas_pcap2db.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/63/27863/1 diff --git a/src/utils/meas_pcap2db.c b/src/utils/meas_pcap2db.c index db00fae..dae4ac6 100644 --- a/src/utils/meas_pcap2db.c +++ b/src/utils/meas_pcap2db.c @@ -61,7 +61,7 @@ static void pcap_cb(u_char *user, const struct pcap_pkthdr *h, const u_char *bytes) { - const char *cur = bytes; + const char *cur = (const char *)bytes; const struct iphdr *ip; const struct udphdr *udp; const struct meas_feed_meas *mfm; -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27863 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: I84d8e6f290bda0f03476f182f292ecc7a9e520f2 Gerrit-Change-Number: 27863 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanits...@sysmocom.de> Gerrit-MessageType: newchange