]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of unused variables.
authorguy <guy>
Wed, 20 Apr 2005 22:18:50 +0000 (22:18 +0000)
committerguy <guy>
Wed, 20 Apr 2005 22:18:50 +0000 (22:18 +0000)
print-icmp6.c
print-ip6opts.c

index a9f53cfef6d7b1842e15c0490109d2f4fe0eb1f8..835166ef1364e91560b890e677171e73efec1146 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.79 2005-01-14 10:41:50 hannes Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.80 2005-04-20 22:23:33 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -237,18 +237,15 @@ icmp6_print(const u_char *bp, u_int length, const u_char *bp2, int fragmented)
 {
        const struct icmp6_hdr *dp;
        const struct ip6_hdr *ip;
-       const char *str;
        const struct ip6_hdr *oip;
        const struct udphdr *ouh;
        int dport;
        const u_char *ep;
-       char buf[256];
        u_int prot;
 
        dp = (struct icmp6_hdr *)bp;
        ip = (struct ip6_hdr *)bp2;
        oip = (struct ip6_hdr *)(dp + 1);
-       str = buf;
        /* 'ep' points to the end of available data. */
        ep = snapend;
 
index a5da63df0b9fc4d92eda780b0afc992533f6d98d..7a4bf5593a8694d5721e28d10e0d954c2ae29d7d 100644 (file)
@@ -33,7 +33,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-     "@(#) $Header: /tcpdump/master/tcpdump/print-ip6opts.c,v 1.17 2003-11-19 00:36:08 guy Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/print-ip6opts.c,v 1.18 2005-04-20 22:18:50 guy Exp $";
 #endif
 
 #ifdef INET6
@@ -289,11 +289,8 @@ int
 hbhopt_print(register const u_char *bp)
 {
     const struct ip6_hbh *dp = (struct ip6_hbh *)bp;
-    register const u_char *ep;
     int hbhlen = 0;
 
-    /* 'ep' points to the end of available data. */
-    ep = snapend;
     TCHECK(dp->ip6h_len);
     hbhlen = (int)((dp->ip6h_len + 1) << 3);
     TCHECK2(*dp, hbhlen);
@@ -312,11 +309,8 @@ int
 dstopt_print(register const u_char *bp)
 {
     const struct ip6_dest *dp = (struct ip6_dest *)bp;
-    register const u_char *ep;
     int dstoptlen = 0;
 
-    /* 'ep' points to the end of available data. */
-    ep = snapend;
     TCHECK(dp->ip6d_len);
     dstoptlen = (int)((dp->ip6d_len + 1) << 3);
     TCHECK2(*dp, dstoptlen);