aboutsummaryrefslogtreecommitdiffstats
path: root/tools/make-sminmpec.pl
diff options
context:
space:
mode:
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;