From: Guy Harris Date: Fri, 9 Dec 2011 06:58:13 +0000 (-0800) Subject: Get rid of an unneeded variable. X-Git-Tag: libpcap-1.3-bp~18 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/a4363042f6ccd1876c2cbea0a3bb707dccf56fcb?ds=inline Get rid of an unneeded variable. --- diff --git a/sf-pcap-ng.c b/sf-pcap-ng.c index 1554320a..7eb6db76 100644 --- a/sf-pcap-ng.c +++ b/sf-pcap-ng.c @@ -772,7 +772,6 @@ pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data) struct simple_packet_block *spbp; struct packet_block *pbp; bpf_u_int32 interface_id = 0xFFFFFFFF; - size_t pblock_len; struct interface_description_block *idbp; struct section_header_block *shbp; FILE *fp = p->sf.rfile; @@ -823,7 +822,6 @@ pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data) t = ((u_int64_t)epbp->timestamp_high) << 32 | epbp->timestamp_low; } - pblock_len = sizeof(*epbp); goto found; case BT_SPB: @@ -860,7 +858,6 @@ pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data) if (hdr->caplen > p->snapshot) hdr->caplen = p->snapshot; t = 0; /* no time stamps */ - pblock_len = sizeof(*spbp); goto found; case BT_PB: @@ -890,7 +887,6 @@ pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data) t = ((u_int64_t)pbp->timestamp_high) << 32 | pbp->timestamp_low; } - pblock_len = sizeof(*pbp); goto found; case BT_IDB: