]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of an unused variable.
authorguy <guy>
Mon, 27 Dec 2004 22:30:54 +0000 (22:30 +0000)
committerguy <guy>
Mon, 27 Dec 2004 22:30:54 +0000 (22:30 +0000)
print-ip.c

index 67d497bab0ebac586f6e54d9f05ff22c174d7192..6f71dae75cfef359353c62381ab5806c45ba75a2 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.144 2004-09-27 21:13:09 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.145 2004-12-27 22:30:54 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -363,7 +363,7 @@ void
 ip_print(register const u_char *bp, register u_int length)
 {
        register const struct ip *ip;
-       register u_int hlen, len, len0, off;
+       register u_int hlen, len, off;
        const u_char *ipend;
        register const u_char *cp;
        u_char nh;
@@ -411,7 +411,6 @@ ip_print(register const u_char *bp, register u_int length)
                snapend = ipend;
 
        len -= hlen;
-       len0 = len;
 
        off = EXTRACT_16BITS(&ip->ip_off);