From: Victor Julien Date: Wed, 29 Jan 2020 10:51:11 +0000 (+0100) Subject: threading/modules: fix global declarations X-Git-Tag: suricata-5.0.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d635eabfb6030ccd616da57a617c05ef5b7853b4;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 5d41de617b..9493d73054 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.