]> The Tcpdump Group git mirrors - tcpdump/commit
Squelch more narrowing warnings.
authorGuy Harris <[email protected]>
Thu, 18 Apr 2019 18:01:55 +0000 (11:01 -0700)
committerGuy Harris <[email protected]>
Thu, 18 Apr 2019 18:01:55 +0000 (11:01 -0700)
commitf9c2c905b118b69a0b102549c1b25cca871947b5
tree6534c060184ad4912f67a36b7c01ba02b433c206
parent07a7f33ba3ff346b9ce31772645a06980baca907
Squelch more narrowing warnings.

Add an ND_BYTES_BETWEEN() macro that computes how many bytes are
present, starting at the second argument and running up to (but not
including) the first argument, and returns that as a u_int (cutting it
to 32 bits on LP64 and LLP64 platforms).

Use that, including using it as a replacement for SMB's PTR_DIFF().
netdissect.h
print-bgp.c
print-lwres.c
print-resp.c
print-smb.c
smb.h
smbutil.c