aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@steve.local>2009-07-11 14:06:57 -0700
committerGuy Harris <gharris@steve.local>2009-07-11 14:06:57 -0700
commit6796b164fd0bfac20835efb38ba5c0e99772876d (patch)
tree6994ebd6b8e360dc7b82850da2db0298cc95ec4e /pcap-linux.c
parent719f5a457b6693a00d8128c4f0f69063014010c1 (diff)
Get rid of an assigned-to-but-unused variable.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 631ef32..b1a00ce 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -2577,7 +2577,7 @@ prepare_tpacket_socket(pcap_t *handle)
static int
create_ring(pcap_t *handle)
{
- unsigned i, j, ringsize, frames_per_block;
+ unsigned i, j, frames_per_block;
struct tpacket_req req;
/* Note that with large snapshot (say 64K) only a few frames
@@ -2629,7 +2629,6 @@ retry:
/* memory map the rx ring */
handle->md.mmapbuflen = req.tp_block_nr * req.tp_block_size;
- ringsize = handle->md.mmapbuflen;
handle->md.mmapbuf = mmap(0, handle->md.mmapbuflen,
PROT_READ|PROT_WRITE, MAP_SHARED, handle->fd, 0);
if (handle->md.mmapbuf == MAP_FAILED) {