aboutsummaryrefslogtreecommitdiffstats
path: root/tools/make-sminmpec.pl
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-09-17 04:51:21 +0000
committerBill Meier <wmeier@newsguy.com>2010-09-17 04:51:21 +0000
commit7219ee2a49ac2da22f3dcf77b0f343a9b0d61b9c (patch)
tree154454d44e42507215001b8a89a7bc65486dccbb /tools/make-sminmpec.pl
parentd643e0366ade6d97ef936deb67bb0cf55a4c765d (diff)
Use val_to_str_ext() & friends to access sminmpec_values[];
Also: packet-nhrp.c: #include sminmpec.h not req'd; svn path=/trunk/; revision=34143
Diffstat (limited to 'tools/make-sminmpec.pl')
-rwxr-xr-xtools/make-sminmpec.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/make-sminmpec.pl b/tools/make-sminmpec.pl
index ba9ce1e0b7..c490ce89eb 100755
--- a/tools/make-sminmpec.pl
+++ b/tools/make-sminmpec.pl
@@ -116,10 +116,14 @@ print OUT <<"_SMINMPEC";
#include <epan/value_string.h>
#include <epan/sminmpec.h>
-const value_string sminmpec_values[] = {
+static const value_string sminmpec_values[] = {
$body { 0, NULL}
};
+#define array_length(x) (sizeof x / sizeof x[0])
+
+value_string_ext sminmpec_values_ext = VALUE_STRING_EXT_INIT(sminmpec_values);
+
_SMINMPEC
close OUT;