From 11a97da38bbfae0a031b0bc6b73d224c2a6ecc1c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 29 Jan 2020 13:27:58 +0100 Subject: [PATCH] proto: fix globals use --- src/util-proto-name.c | 3 +++ src/util-proto-name.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util-proto-name.c b/src/util-proto-name.c index 0b958884ca..2392682d7b 100644 --- a/src/util-proto-name.c +++ b/src/util-proto-name.c @@ -27,6 +27,9 @@ #include "suricata-common.h" #include "util-proto-name.h" +/** Lookup array to hold the information related to known protocol + * in /etc/protocols */ +char *known_proto[256]; static int init_once = 0; /** diff --git a/src/util-proto-name.h b/src/util-proto-name.h index e349a6db2e..7cf69df928 100644 --- a/src/util-proto-name.h +++ b/src/util-proto-name.h @@ -32,7 +32,7 @@ /** Lookup array to hold the information related to known protocol * in /etc/protocols */ -char *known_proto[256]; +extern char *known_proto[256]; uint8_t SCProtoNameValid(uint16_t); void SCProtoNameInit(void); -- 2.47.2