]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
spm: fix global declaration of spm_table
authorVictor Julien <victor@inliniac.net>
Wed, 29 Jan 2020 09:11:54 +0000 (10:11 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 11 Feb 2020 19:38:50 +0000 (20:38 +0100)
src/util-spm.c
src/util-spm.h

index e6fcf3dda764de49d986d3b436b6e3b80dd34573..17bc1139e0edc9b89e0aea899d07947f31ec3e05 100644 (file)
@@ -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.
index 2f3b60fe7eda56e7fe6fe500064a06dbd6931666..dbffb2bf30469070856c4a5de3d40445e9684857 100644 (file)
@@ -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);