summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-09-23 18:00:06 +0000
committerBill Meier <wmeier@newsguy.com>2010-09-23 18:00:06 +0000
commitb98e9422f9be7f0c8b45d5f2be61d995abf035af (patch)
tree9994535d5ec90e6a1a27dfce2df18ce57665af22
parent3b48b698663d6ddb54636fcff5f43b5d8d12fbca (diff)
downloadwireshark-b98e9422f9be7f0c8b45d5f2be61d995abf035af.tar.gz
Make value_string ipproto_val static; It should only be referenced using ipproto_val_ext
svn path=/trunk/; revision=34215
-rw-r--r--epan/ipproto.c2
-rw-r--r--epan/ipproto.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/epan/ipproto.c b/epan/ipproto.c
index ad7d9d34a0..ea7ab564ce 100644
--- a/epan/ipproto.c
+++ b/epan/ipproto.c
@@ -38,7 +38,7 @@
#include <epan/dissectors/packet-ip.h>
#include <epan/strutil.h>
-const value_string ipproto_val[] = {
+static const value_string ipproto_val[] = {
#if 0
{ IP_PROTO_IP, "IPv4" },
#endif
diff --git a/epan/ipproto.h b/epan/ipproto.h
index 902a915677..484c54b346 100644
--- a/epan/ipproto.h
+++ b/epan/ipproto.h
@@ -192,7 +192,6 @@
#define IP_PROTO_AX4000 173 /* AX/4000 Testblock - non IANA */
#define IP_PROTO_NCS_HEARTBEAT 224 /* Novell NCS Heartbeat - http://support.novell.com/cgi-bin/search/searchtid.cgi?/10071158.htm */
-extern const value_string ipproto_val[];
extern value_string_ext ipproto_val_ext;
extern const char *ipprotostr(const int proto);