diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-04-21 14:02:29 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-04-21 14:02:29 -0700 |
commit | c209617cffdc282fd3afbda9b6d321b17a2a593d (patch) | |
tree | b1ae9367f41d82590ee4675672757094e9219a08 /CREDITS | |
parent | d808c9d0d4a009844c4f314967f3618f5aabcd9d (diff) | |
download | tcpdump-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