]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
packetpool: minor cleanup
authorVictor Julien <vjulien@oisf.net>
Wed, 27 Apr 2022 19:25:51 +0000 (21:25 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 9 May 2022 14:06:53 +0000 (16:06 +0200)
src/tmqh-packetpool.c

index 3ca5d87c0b893b6b60c7ed5c7eedb3f72ef42b56..92b017a038b4c6d12bef781dfae0585e3516c313 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2014 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -113,13 +113,13 @@ void PacketPoolWait(void)
 void PacketPoolWaitForN(int n)
 {
     PktPool *my_pool = GetThreadPacketPool();
-    Packet *p, *pp;
 
     while (1) {
         PacketPoolWait();
 
         /* count packets in our stack */
         int i = 0;
+        Packet *p, *pp;
         pp = p = my_pool->head;
         while (p != NULL) {
             if (++i == n)