spm: fix global declaration of spm_table

pull/4537/head
Victor Julien 6 years ago
parent a12c0b499d
commit 0118e07d57

@ -59,6 +59,8 @@
#include "hs.h" #include "hs.h"
#endif #endif
SpmTableElmt spm_table[SPM_TABLE_SIZE];
/** /**
* \brief Returns the single pattern matcher algorithm to be used, based on the * \brief Returns the single pattern matcher algorithm to be used, based on the
* spm-algo setting in yaml. * spm-algo setting in yaml.

@ -71,7 +71,7 @@ typedef struct SpmTableElmt_ {
const uint8_t *haystack, uint32_t haystack_len); const uint8_t *haystack, uint32_t haystack_len);
} SpmTableElmt; } SpmTableElmt;
SpmTableElmt spm_table[SPM_TABLE_SIZE]; extern SpmTableElmt spm_table[SPM_TABLE_SIZE];
void SpmTableSetup(void); void SpmTableSetup(void);

Loading…
Cancel
Save