]> The Tcpdump Group git mirrors - libpcap/commitdiff
Get rid of an unneeded variable.
authorGuy Harris <[email protected]>
Fri, 9 Dec 2011 06:58:13 +0000 (22:58 -0800)
committerGuy Harris <[email protected]>
Fri, 9 Dec 2011 06:58:13 +0000 (22:58 -0800)
sf-pcap-ng.c

index 1554320a5d3c1e5f6e17cfc33421534a65e38e0b..7eb6db76493b1b4b49c2bc7f86fe5685a15042d6 100644 (file)
@@ -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;
        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;
        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;
                        }
                                t = ((u_int64_t)epbp->timestamp_high) << 32 |
                                    epbp->timestamp_low;
                        }
-                       pblock_len = sizeof(*epbp);
                        goto found;
                        
                case BT_SPB:
                        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 */
                        if (hdr->caplen > p->snapshot)
                                hdr->caplen = p->snapshot;
                        t = 0;  /* no time stamps */
-                       pblock_len = sizeof(*spbp);
                        goto found;
 
                case BT_PB:
                        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;
                        }
                                t = ((u_int64_t)pbp->timestamp_high) << 32 |
                                    pbp->timestamp_low;
                        }
-                       pblock_len = sizeof(*pbp);
                        goto found;
 
                case BT_IDB:
                        goto found;
 
                case BT_IDB: