diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-09-14 15:38:02 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-09-14 15:38:02 -0700 |
commit | 2dcd645c871793a86da507f0f570c51f5744560a (patch) | |
tree | 920b41d99c1e3e77c5314472eb0e6cc6da1f01d6 /print-llc.c | |
parent | ff1df423b6a8cda80cef88efa8a3162abcfd0e6e (diff) | |
download | tcpdump-2dcd645c871793a86da507f0f570c51f5744560a.tar.gz |
hdrlen is never > INT_MAX, and we negate it, so make it an int.
This squelches some compiler warnings.
Diffstat (limited to 'print-llc.c')
-rw-r--r-- | print-llc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-llc.c b/print-llc.c index 2edf6435..3fdcef72 100644 --- a/print-llc.c +++ b/print-llc.c @@ -150,7 +150,7 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, { uint8_t dsap_field, dsap, ssap_field, ssap; uint16_t control; - u_int hdrlen; + int hdrlen; int is_u; if (caplen < 3) { |