mirror of https://gerrit.osmocom.org/osmo-pcap
According to pcap.h, type bpf_u_int32 can be 32 bits on some systems, so better cast explicitly to size_t to make sure always correct size is used by log function. Fixes warning: osmo-pcap/src/osmo_client_network.c:175:4: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 7 has type ‘bpf_u_int32’ {aka ‘unsigned int’} [-Wformat=] "Capture len too big %zu\n", in_hdr->caplen); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ Change-Id: I98654da143218d3e57da4e57781252eb3d3f3d5b |
||
---|---|---|
.. | ||
Makefile.am | ||
osmo_client_core.c | ||
osmo_client_main.c | ||
osmo_client_network.c | ||
osmo_client_vty.c | ||
osmo_common.c | ||
osmo_server_main.c | ||
osmo_server_network.c | ||
osmo_server_vty.c | ||
osmo_tls.c |