From: Victor Julien Date: Wed, 29 Jan 2020 10:51:11 +0000 (+0100) Subject: threading/modules: fix global declarations X-Git-Tag: suricata-6.0.0-beta1~761 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2436daccd9574064d9f880813e0e8ba3de944d64;p=thirdparty%2Fsuricata.git threading/modules: fix global declarations --- diff --git a/src/tm-modules.c b/src/tm-modules.c index d9478cc8d8..9f0ec6e7df 100644 --- a/src/tm-modules.c +++ b/src/tm-modules.c @@ -30,6 +30,8 @@ #include "threads.h" #include "util-logopenfile.h" +TmModule tmm_modules[TMM_SIZE]; + void TmModuleDebugList(void) { TmModule *t; diff --git a/src/tm-modules.h b/src/tm-modules.h index 2e896db2ab..a3c040028e 100644 --- a/src/tm-modules.h +++ b/src/tm-modules.h @@ -70,7 +70,7 @@ typedef struct TmModule_ { uint8_t flags; } TmModule; -TmModule tmm_modules[TMM_SIZE]; +extern TmModule tmm_modules[TMM_SIZE]; /** * Structure that output modules use to maintain private data.