]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threading: fix global declaration of trans_q
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 09:56:25 +0000 (10:56 +0100)
src/suricata.h
src/tm-threads.c

index a05febdb523c51f3799b4e24f98a6ea7d54273cf..3fd30650a95299bd40c0f37245269ea83087d604 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 95c14e1a5d3a2e958018a89c56eed3d084033968..aca6d96467d79a2668e6a7bac1bfe2cfe795274f 100644 (file)
@@ -80,6 +80,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.
  *