From e637af376a5b726f0b7d763ec9bab0ed41ffd159 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 27 Apr 2009 22:07:11 +0000 Subject: pcap_to_wtap_map is not used outside wiretap/pcap-common.c, so make it static. svn path=/trunk/; revision=28186 --- wiretap/pcap-common.c | 5 ++++- wiretap/pcap-common.h | 7 ------- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'wiretap') 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, -- cgit v1.2.3