diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-02-27 08:57:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-02-27 08:57:25 +0000 |
commit | cbf5c537c4e0ad18f3363815c89e71511a3d3fd7 (patch) | |
tree | 76f73e3b705843a74596e48d8d86d05eaa1f4461 /wiretap/etherpeek.c | |
parent | 03e58907613b5f73236fcde0d81668a1f3f920bc (diff) | |
download | wireshark-cbf5c537c4e0ad18f3363815c89e71511a3d3fd7.tar.gz wireshark-cbf5c537c4e0ad18f3363815c89e71511a3d3fd7.tar.bz2 wireshark-cbf5c537c4e0ad18f3363815c89e71511a3d3fd7.zip |
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.c | 8 |
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); |