]> The Tcpdump Group git mirrors - libpcap/commit
Add PRIsize, to use as the print format for size_t, and use it.
authorGuy Harris <[email protected]>
Sun, 5 Aug 2018 22:59:44 +0000 (15:59 -0700)
committerGuy Harris <[email protected]>
Sun, 5 Aug 2018 22:59:44 +0000 (15:59 -0700)
commite217f88289b9601e3a9a8d13477f867bcb83b5e2
tree76d6f0e719a8c8a6fbd0db055e0261d3a6c6f48d
parent90afc7640b08b812ff8e1f112e7dad7f690b0072
Add PRIsize, to use as the print format for size_t, and use it.

size_t may be bigger than unsigned long, so don't just cast to unsigned
long and print with %lu".  (In practice, the value is unlikely to be
bigger, but this is cleaner.)

We could use %zu on UN*X, as we require C99 support and C99 requires
support for z as a size modifier, but MSVC doesn't support z as a size
modifier until Visual Studio 2017.
pcap/pcap-inttypes.h
savefile.c
sf-pcap.c
sf-pcapng.c