]> The Tcpdump Group git mirrors - tcpdump/commit
Squelch some warnings.
authorGuy Harris <[email protected]>
Mon, 25 May 2020 09:02:34 +0000 (02:02 -0700)
committerGuy Harris <[email protected]>
Mon, 25 May 2020 09:02:34 +0000 (02:02 -0700)
commit2ba1be35231dbdad50729e544fe4c2252aa15008
tree5d1aa4aa5c51c1be8aed14fdfa037c2ea8741574
parent5a1d8b7774d1b9359cd0681a29eec3df5c48231c
Squelch some warnings.

Use ND_BYTES_AVAILABLE_AFTER() to calculate the number of bytes
remaining in the packet after a given pointer, rather than doing the
subtraction directly; that casts the result to a u_int (we don't handle
packets bigger than the maximum u_int value, so the difference between
the pointers will never be bigger than that value), so we don't have to
deal with it being a 64-bit value on LP64 or LLP64 systems.  (It also
makes it a bit clearer what we're doing).

Clean up some indentation while we're at it.
print-ppp.c
print-smb.c
print-zeromq.c
util-print.c