]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
tm-threads: fix build warning in afl mode
authorEric Leblond <eric@regit.org>
Tue, 26 Dec 2017 19:14:24 +0000 (20:14 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 12 Feb 2018 11:24:24 +0000 (12:24 +0100)
src/tm-threads.c

index 3d9b95ebb7a50da09b73eb4ff3e15dc79bae407d..10a2967e1b36a96c4ab455134631d48eff86164b 100644 (file)
@@ -188,6 +188,8 @@ TmEcode TmThreadsSlotVarRun(ThreadVars *tv, Packet *p,
     return TM_ECODE_OK;
 }
 
+#ifndef AFLFUZZ_PCAP_RUNMODE
+
 /** \internal
  *
  *  \brief Process flow timeout packets
@@ -268,8 +270,6 @@ static int TmThreadTimeoutLoop(ThreadVars *tv, TmSlot *s)
 
  */
 
-#ifndef AFLFUZZ_PCAP_RUNMODE
-
 static void *TmThreadsSlotPktAcqLoop(void *td)
 {
     ThreadVars *tv = (ThreadVars *)td;