From: guy Date: Fri, 29 Sep 2000 05:33:48 +0000 (+0000) Subject: Don't use "long" in structures that represent packet layouts - "long" X-Git-Tag: tcpdump-3.5.1~148 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/5bca6d30f4cf933b3971de2e9fa6bb95dc36a133 Don't use "long" in structures that represent packet layouts - "long" isn't necessarily 32 bits. Use unsigned data types for unsigned values. --- diff --git a/print-chdlc.c b/print-chdlc.c index 394b51e4..3f6cf205 100644 --- a/print-chdlc.c +++ b/print-chdlc.c @@ -22,7 +22,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.9 2000-09-29 04:58:35 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.10 2000-09-29 05:33:48 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -125,7 +125,7 @@ out: } struct cisco_slarp { - long code; + u_int code; #define SLARP_REQUEST 0 #define SLARP_REPLY 1 #define SLARP_KEEPALIVE 2 @@ -136,11 +136,11 @@ struct cisco_slarp { u_short unused[3]; } addr; struct { - long myseq; - long yourseq; - short rel; - short t1; - short t2; + u_int myseq; + u_int yourseq; + u_short rel; + u_short t1; + u_short t2; } keep; } un; };