summaryrefslogtreecommitdiff
path: root/CREDITS
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-21 14:02:29 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-21 14:02:29 -0700
commitc209617cffdc282fd3afbda9b6d321b17a2a593d (patch)
treeb1ae9367f41d82590ee4675672757094e9219a08 /CREDITS
parentd808c9d0d4a009844c4f314967f3618f5aabcd9d (diff)
downloadtcpdump-c209617cffdc282fd3afbda9b6d321b17a2a593d.tar.gz
Shorten sizeof to u_int, to match the %u format used with it.
On LP64 and LLP64 platforms, sizeof returns a 64-bit value, which is larger than an int or unsigned int, so if you add the result of sizeof to a value shorter than 64 bits, you can't print the result with %u. As an M3UA parameter header is much shorter than 2^32 bytes, we can safely just cast sizeof(struct m3ua_param_header) to u_int.
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions