From: guy Date: Wed, 20 Apr 2005 18:23:42 +0000 (+0000) Subject: Get rid of an unused variable. X-Git-Tag: libpcap-0.9.1~39 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/c1a49ecabc3131a6f3b20c4f674508303a1825b9 Get rid of an unused variable. --- diff --git a/gencode.c b/gencode.c index 53ecbcc9..60c23397 100644 --- a/gencode.c +++ b/gencode.c @@ -21,7 +21,7 @@ */ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.221.2.5 2005-04-19 04:26:06 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.221.2.6 2005-04-20 18:23:42 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -101,7 +101,7 @@ static jmp_buf top_ctx; static pcap_t *bpf_pcap; /* Hack for updating VLAN, MPLS offsets. */ -static u_int orig_linktype = -1U, orig_nl = -1U, orig_nl_nosnap = -1U; +static u_int orig_linktype = -1U, orig_nl = -1U; /* XXX */ #ifdef PCAP_FDDIPAD @@ -710,7 +710,6 @@ init_linktype(p) orig_linktype = -1; orig_nl = -1; - orig_nl_nosnap = -1; switch (linktype) { @@ -5691,7 +5690,6 @@ gen_vlan(vlan_num) */ orig_linktype = off_linktype; /* save original values */ orig_nl = off_nl; - orig_nl_nosnap = off_nl_nosnap; switch (linktype) { @@ -5742,7 +5740,6 @@ gen_mpls(label_num) */ orig_linktype = off_linktype; /* save original values */ orig_nl = off_nl; - orig_nl_nosnap = off_nl_nosnap; switch (linktype) {