aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-05-18 08:13:51 +0000
committerJörg Mayer <jmayer@loplof.de>2013-05-18 08:13:51 +0000
commitd9dd3f3e4e3ea3ee6be9c363cd11ad0f15949b8b (patch)
tree9b9605915a33a12c554499f8a03657c3f23fde15 /wiretap
parent82f74c35fc3f2ca49933eabb762a39f6da45d4f7 (diff)
Fix "set but not used" compile warning turning error
svn path=/trunk/; revision=49405
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/libpcap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index d1c044e2ac..71ebdfbb27 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -651,7 +651,6 @@ libpcap_process_header(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
int bytes_read;
guint8 fddi_padding[3];
int phdr_len;
- libpcap_t *libpcap;
bytes_read = libpcap_read_header(wth, fh, err, err_info, &hdr);
if (bytes_read == -1) {
@@ -686,7 +685,6 @@ libpcap_process_header(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
return FALSE; /* Read error */
}
- libpcap = (libpcap_t *)wth->priv;
phdr_len = pcap_process_pseudo_header(fh, wth->file_type,
wth->file_encap, packet_size, TRUE, phdr, err, err_info);
if (phdr_len < 0)