]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3293: watchdog: remove unused code
authorMasud Hasan (mashasan) <mashasan@cisco.com>
Wed, 2 Mar 2022 16:53:18 +0000 (16:53 +0000)
committerMasud Hasan (mashasan) <mashasan@cisco.com>
Wed, 2 Mar 2022 16:53:18 +0000 (16:53 +0000)
Merge in SNORT/snort3 from ~SBAIGAL/snort3:wdog_fix to master

Squashed commit of the following:

commit 638c16a54c5ada4c71787d44b8b855645a3e8833
Author: Steven Baigal (sbaigal) <sbaigal@cisco.com>
Date:   Wed Mar 2 08:41:07 2022 -0500

    watchdog: remove unused code

src/main/thread_config.cc

index f4609bd237e19a2b8d5d6227d98b039a95f8a1e4..36f63c96049993b6817977edf25c1ad076ab0949 100644 (file)
@@ -275,7 +275,6 @@ void Watchdog::kick()
     unsigned max = ThreadConfig::get_instance_max();
     if ( waiting )
     {
-        int n = 0;
         WarningMessage("Packet processing thread is unresponsive, aborting Snort!\n");
         WarningMessage("Unresponsive thread ID: ");
         for ( unsigned i = 0; i < max; ++i )