Permalink
Browse files

Get rid of an unneeded variable.

  • Loading branch information...
1 parent ebdced8 commit a4363042f6ccd1876c2cbea0a3bb707dccf56fcb @guyharris guyharris committed Dec 9, 2011
Showing with 0 additions and 4 deletions.
  1. +0 −4 sf-pcap-ng.c
View
4 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:

0 comments on commit a436304

Please sign in to comment.