aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/etherpeek.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-27 08:57:25 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-27 08:57:25 +0000
commitcbf5c537c4e0ad18f3363815c89e71511a3d3fd7 (patch)
tree76f73e3b705843a74596e48d8d86d05eaa1f4461 /wiretap/etherpeek.c
parent03e58907613b5f73236fcde0d81668a1f3f920bc (diff)
From Joerg Mayer: remove unused variables and declarations of
non-existent functions. Remove the "filetype" argument from the "can_write_encap" functions for particular capture file types - the argument value is implicit, in that the routine being called is the routine for that particular file type. svn path=/trunk/; revision=4823
Diffstat (limited to 'wiretap/etherpeek.c')
-rw-r--r--wiretap/etherpeek.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/wiretap/etherpeek.c b/wiretap/etherpeek.c
index c7c2aa430b..5ac5d90b85 100644
--- a/wiretap/etherpeek.c
+++ b/wiretap/etherpeek.c
@@ -2,7 +2,7 @@
* Routines for opening EtherPeek (and TokenPeek?) files
* Copyright (c) 2001, Daniel Thompson <d.thompson@gmx.net>
*
- * $Id: etherpeek.c,v 1.16 2002/02/15 11:35:13 guy Exp $
+ * $Id: etherpeek.c,v 1.17 2002/02/27 08:57:24 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -138,11 +138,6 @@ int etherpeek_open(wtap *wth, int *err)
{
etherpeek_header_t ep_hdr;
struct timeval reference_time;
- static const int etherpeek_v7_encap[] = {
- WTAP_ENCAP_ETHERNET,
- WTAP_ENCAP_TOKEN_RING,
- };
- #define NUM_ETHERPEEK_V7_ENCAPS (sizeof etherpeek_v7_encap / sizeof etherpeek_v7_encap[0])
int file_encap;
/* EtherPeek files do not start with a magic value large enough
@@ -335,7 +330,6 @@ static gboolean etherpeek_read_v7(wtap *wth, int *err, long *data_offset)
guint8 status;
etherpeek_utime timestamp;
double t;
- unsigned int i;
wtap_file_read_expected_bytes(ep_pkt, sizeof(ep_pkt), wth->fh, err);
wth->data_offset += sizeof(ep_pkt);