]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threading: fix global declaration of trans_q 4542/head
authorVictor Julien <victor@inliniac.net>
Wed, 29 Jan 2020 07:27:43 +0000 (08:27 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 12 Feb 2020 10:07:54 +0000 (11:07 +0100)
(cherry picked from commit bd3fac73b1c20eba1577023adb7cafc80b083bd3)

src/suricata.h
src/tm-threads.c

index e8d118418430114d9f2bd41039b7c9cd59f95ef1..99fcabe913da0e7c6fc3671adfa33f6a817f7c93 100644 (file)
@@ -125,10 +125,7 @@ enum {
 
 #include "runmodes.h"
 
-/* queue's between various other threads
- * XXX move to the TmQueue structure later
- */
-PacketQueue trans_q[256];
+extern PacketQueue trans_q[256];
 
 typedef struct SCInstance_ {
     enum RunModes run_mode;
index b37d073bc1883972d10c75d53d4d4a3da8b4c00f..b31b72293bfdadf07edf320eacb7b8bc687805e7 100644 (file)
@@ -95,6 +95,11 @@ ThreadVars *tv_root[TVT_MAX] = { NULL };
 /* lock to protect tv_root */
 SCMutex tv_root_lock = SCMUTEX_INITIALIZER;
 
+/* queue's between various other threads
+ * XXX move to the TmQueue structure later
+ */
+PacketQueue trans_q[256];
+
 /**
  * \brief Check if a thread flag is set.
  *