]> The Tcpdump Group git mirrors - libpcap/commitdiff
Remove dead stores. 865/head
authorMario J. Rugiero <[email protected]>
Wed, 16 Oct 2019 06:12:14 +0000 (03:12 -0300)
committerMario J. Rugiero <[email protected]>
Wed, 16 Oct 2019 06:20:24 +0000 (03:20 -0300)
fmtutils.c
pcap-linux.c

index d89a3976159da50b7786721ac3c7981a55c01ea4..a4f59c2b2529840fa7d3b9793803691c661f6509 100644 (file)
@@ -84,7 +84,6 @@ pcap_fmt_errmsg_for_errno(char *errbuf, size_t errbuflen, int errnum,
        *p++ = ':';
        *p++ = ' ';
        *p = '\0';
-       msglen += 2;
        errbuflen_remaining -= 2;
 
        /*
index 4c43301aa65ef465310fc65959ffe197d9fe9a3f..600af4aa9dd6dd224536d972d8459f97e69eafc1 100644 (file)
@@ -2981,8 +2981,6 @@ pcap_setfilter_linux(pcap_t *handle, struct bpf_program *filter)
 static int
 pcap_setdirection_linux(pcap_t *handle, pcap_direction_t d)
 {
-       struct pcap_linux *handlep = handle->priv;
-
        handle->direction = d;
        return 0;
 }