diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-08-05 15:59:44 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-08-05 15:59:44 -0700 |
commit | e217f88289b9601e3a9a8d13477f867bcb83b5e2 (patch) | |
tree | 76d6f0e719a8c8a6fbd0db055e0261d3a6c6f48d /pcap-linux.c | |
parent | 90afc7640b08b812ff8e1f112e7dad7f690b0072 (diff) |
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.
Diffstat (limited to 'pcap-linux.c')
0 files changed, 0 insertions, 0 deletions