]> The Tcpdump Group git mirrors - tcpdump/commit
Shorten sizeof to u_int, to match the %u format used with it.
authorGuy Harris <[email protected]>
Mon, 21 Apr 2014 21:02:29 +0000 (14:02 -0700)
committerGuy Harris <[email protected]>
Mon, 21 Apr 2014 21:02:29 +0000 (14:02 -0700)
commitc209617cffdc282fd3afbda9b6d321b17a2a593d
treeb1ae9367f41d82590ee4675672757094e9219a08
parentd808c9d0d4a009844c4f314967f3618f5aabcd9d
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.
print-m3ua.c