diff options
author | fenner <fenner@FreeBSD.org> | 1998-09-15 19:36:32 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1998-09-15 19:36:32 +0000 |
commit | cfc42b58f229425374e675f86614cf26ffa356e4 (patch) | |
tree | 6bd786e664682d3877b9cca3efa525ac67d8e005 /contrib/tcpdump/print-isoclns.c | |
parent | a9b9c86c8a0ccde5c1480bf5a0ba250d949a6d65 (diff) | |
download | FreeBSD-src-cfc42b58f229425374e675f86614cf26ffa356e4.zip FreeBSD-src-cfc42b58f229425374e675f86614cf26ffa356e4.tar.gz |
Virgin import of LBL tcpdump v3.4
Diffstat (limited to 'contrib/tcpdump/print-isoclns.c')
-rw-r--r-- | contrib/tcpdump/print-isoclns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/tcpdump/print-isoclns.c b/contrib/tcpdump/print-isoclns.c index 90b88c8..629dfe0 100644 --- a/contrib/tcpdump/print-isoclns.c +++ b/contrib/tcpdump/print-isoclns.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: print-isoclns.c,v 1.14 96/12/10 23:26:56 leres Exp $ (LBL)"; + "@(#) $Header: print-isoclns.c,v 1.15 96/12/31 21:27:41 leres Exp $ (LBL)"; #endif #include <sys/types.h> @@ -160,7 +160,7 @@ esis_print(const u_char *p, u_int length) printf(" bad pkt!"); else { printf(" too short for esis header %d:", li); - while (--length >= 0) + while (--length != 0) printf("%02X", *p++); } return; @@ -293,7 +293,7 @@ osi_cksum(register const u_char *p, register u_int len, return 0; off[0] = off[1] = 0; - while (--len >= 0) { + while ((int)--len >= 0) { c0 += *p++; c1 += c0; c0 %= 255; |