detect-pcre: small cleanups

pull/2559/head
Victor Julien 9 years ago
parent ac42a44280
commit 017b16d421

@ -77,12 +77,9 @@ static pcre_extra *parse_capture_regex_study;
static int pcre_use_jit = 1;
#endif
int DetectPcreMatch (ThreadVars *, DetectEngineThreadCtx *, Packet *, Signature *, SigMatch *);
int DetectPcreALMatchCookie(ThreadVars *t, DetectEngineThreadCtx *det_ctx, Flow *f, uint8_t flags, void *state, Signature *s, SigMatch *m);
int DetectPcreALMatchMethod(ThreadVars *t, DetectEngineThreadCtx *det_ctx, Flow *f, uint8_t flags, void *state, Signature *s, SigMatch *m);
static int DetectPcreSetup (DetectEngineCtx *, Signature *, char *);
void DetectPcreFree(void *);
void DetectPcreRegisterTests(void);
static void DetectPcreFree(void *);
static void DetectPcreRegisterTests(void);
void DetectPcreRegister (void)
{
@ -747,7 +744,7 @@ static int DetectPcreSetup (DetectEngineCtx *de_ctx, Signature *s, char *regexst
SCReturnInt(ret);
}
void DetectPcreFree(void *ptr)
static void DetectPcreFree(void *ptr)
{
if (ptr == NULL)
return;
@ -3306,7 +3303,7 @@ static int DetectPcreParseHttpHost(void)
/**
* \brief this function registers unit tests for DetectPcre
*/
void DetectPcreRegisterTests(void)
static void DetectPcreRegisterTests(void)
{
#ifdef UNITTESTS /* UNITTESTS */
g_file_data_buffer_id = DetectBufferTypeGetByName("file_data");

Loading…
Cancel
Save