From 0118e07d57a34c5fa72a57fdbae8bf2d3c182478 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 29 Jan 2020 10:11:54 +0100 Subject: [PATCH] spm: fix global declaration of spm_table --- src/util-spm.c | 2 ++ src/util-spm.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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);