From: Victor Julien Date: Wed, 29 Jan 2020 12:27:58 +0000 (+0100) Subject: proto: fix globals use X-Git-Tag: suricata-6.0.0-beta1~758 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85289f32835276f4c3acbcc54b64e36c125f3e4c;p=thirdparty%2Fsuricata.git proto: fix globals use --- 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);