From: Victor Julien Date: Wed, 29 Jan 2020 09:11:54 +0000 (+0100) Subject: spm: fix global declaration of spm_table X-Git-Tag: suricata-6.0.0-beta1~766 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0118e07d57a34c5fa72a57fdbae8bf2d3c182478;p=thirdparty%2Fsuricata.git spm: fix global declaration of spm_table --- diff --git a/src/util-spm.c b/src/util-spm.c index e6fcf3dda7..17bc1139e0 100644 --- a/src/util-spm.c +++ b/src/util-spm.c @@ -59,6 +59,8 @@ #include "hs.h" #endif +SpmTableElmt spm_table[SPM_TABLE_SIZE]; + /** * \brief Returns the single pattern matcher algorithm to be used, based on the * spm-algo setting in yaml. diff --git a/src/util-spm.h b/src/util-spm.h index 2f3b60fe7e..dbffb2bf30 100644 --- a/src/util-spm.h +++ b/src/util-spm.h @@ -71,7 +71,7 @@ typedef struct SpmTableElmt_ { const uint8_t *haystack, uint32_t haystack_len); } SpmTableElmt; -SpmTableElmt spm_table[SPM_TABLE_SIZE]; +extern SpmTableElmt spm_table[SPM_TABLE_SIZE]; void SpmTableSetup(void);