diff options
author | guy <guy> | 2008-03-15 04:26:14 +0000 |
---|---|---|
committer | guy <guy> | 2008-03-15 04:26:14 +0000 |
commit | 19d1a629c7adea3d04f53c69d08cc4ce9e1693b0 (patch) | |
tree | 990743b8f491fd360676ae90daf82863d4308f14 /pcap-libdlpi.c | |
parent | dbdc1e6c7e8de000490d94450e450f8c8f2d1526 (diff) |
Get rid of an unused variable, and stop using an unset variable and then
get rid of it as it's then unused.
Diffstat (limited to 'pcap-libdlpi.c')
-rw-r--r-- | pcap-libdlpi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pcap-libdlpi.c b/pcap-libdlpi.c index 04282af0..a40281f6 100644 --- a/pcap-libdlpi.c +++ b/pcap-libdlpi.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/pcap-libdlpi.c,v 1.2 2008-03-15 04:15:26 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-libdlpi.c,v 1.3 2008-03-15 04:26:14 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; /* |