spm: fix global declaration of spm_table

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

@ -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.

@ -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);

Loading…
Cancel
Save