]> The Tcpdump Group git mirrors - libpcap/commitdiff
Get rid of an unused variable, and stop using an unset variable and then
authorguy <guy>
Sat, 15 Mar 2008 04:26:29 +0000 (04:26 +0000)
committerguy <guy>
Sat, 15 Mar 2008 04:26:29 +0000 (04:26 +0000)
get rid of it as it's then unused.

pcap-libdlpi.c

index aeb94be4dd7b1fc8c8ca65202fbae8c7f0d4e553..8fab98be606c50210a8a9575d97efc6382841615 100644 (file)
@@ -26,7 +26,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-       "@(#) $Header: /tcpdump/master/libpcap/pcap-libdlpi.c,v 1.1.2.2 2008-03-15 04:15:46 guy Exp $ (LBL)";
+       "@(#) $Header: /tcpdump/master/libpcap/pcap-libdlpi.c,v 1.1.2.3 2008-03-15 04:26:29 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -104,7 +104,6 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
        pcap_t *p;
        dlpi_handle_t dh;
        dlpi_info_t dlinfo;
-       bpf_u_int32 ss, chunksize;
 
        if ((p = (pcap_t *)malloc(sizeof(*p))) == NULL) {
                strlcpy(ebuf, pcap_strerror(errno), PCAP_ERRBUF_SIZE);
@@ -177,7 +176,7 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
        p->fd = dlpi_fd(p->dlpi_hd);
 
        /* Push and configure bufmod. */
-       if (pcap_conf_bufmod(p, ss, to_ms, ebuf) != 0)
+       if (pcap_conf_bufmod(p, snaplen, to_ms, ebuf) != 0)
                goto bad;
 
        /*