]> 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)
committerEric Leblond <eric@regit.org>
Tue, 6 Feb 2018 15:58:19 +0000 (16:58 +0100)
src/tm-threads.c

index 522b0c9475ce9196e3c75c86559b8484e057ee93..3d9b95ebb7a50da09b73eb4ff3e15dc79bae407d 100644 (file)
@@ -268,6 +268,8 @@ static int TmThreadTimeoutLoop(ThreadVars *tv, TmSlot *s)
 
  */
 
+#ifndef AFLFUZZ_PCAP_RUNMODE
+
 static void *TmThreadsSlotPktAcqLoop(void *td)
 {
     ThreadVars *tv = (ThreadVars *)td;
@@ -397,6 +399,8 @@ error:
     return NULL;
 }
 
+#endif /* NO  AFLFUZZ_PCAP_RUNMODE */
+
 #ifdef AFLFUZZ_PCAP_RUNMODE
 /** \brief simplified loop to speed up AFL
  *