diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-04-27 22:07:11 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-04-27 22:07:11 +0000 |
commit | e637af376a5b726f0b7d763ec9bab0ed41ffd159 (patch) | |
tree | 00496c81590a342b0440938be33321ae621e1165 /wiretap | |
parent | 7876fb4eadcf3bd2fe1ad538c712cc5d7bcebc45 (diff) |
pcap_to_wtap_map is not used outside wiretap/pcap-common.c, so make it
static.
svn path=/trunk/; revision=28186
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/pcap-common.c | 5 | ||||
-rw-r--r-- | wiretap/pcap-common.h | 7 |
2 files changed, 4 insertions, 8 deletions
diff --git a/wiretap/pcap-common.c b/wiretap/pcap-common.c index 675705222e..070372b21c 100644 --- a/wiretap/pcap-common.c +++ b/wiretap/pcap-common.c @@ -72,7 +72,10 @@ * field of "pcap_to_wtap_map[]". */ -const struct encap_map pcap_to_wtap_map[] = { +static const struct { + int dlt_value; + int wtap_encap_value; +} pcap_to_wtap_map[] = { /* * These are the values that are almost certainly the same * in all libpcaps (I've yet to find one where the values diff --git a/wiretap/pcap-common.h b/wiretap/pcap-common.h index 2df92014b6..a058779454 100644 --- a/wiretap/pcap-common.h +++ b/wiretap/pcap-common.h @@ -24,13 +24,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -struct encap_map { - int dlt_value; - int wtap_encap_value; -}; - -extern const struct encap_map pcap_to_wtap_map[]; - extern int wtap_wtap_encap_to_pcap_encap(int encap); extern int pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size, |