]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
runmode: remove unused variable.
authorEric Leblond <eric@regit.org>
Wed, 8 Jan 2014 14:55:58 +0000 (15:55 +0100)
committerEric Leblond <eric@regit.org>
Mon, 3 Mar 2014 15:07:56 +0000 (16:07 +0100)
default_mode_auto is not used anymore and can be removed.

src/runmode-af-packet.c
src/runmode-pfring.c

index 6765d081a18e95512e2bceb499e01c4becd813dc..51d6ea43034969e85b2d3a1c4bc7f28000517f6b 100644 (file)
@@ -57,7 +57,6 @@
 
 extern int max_pending_packets;
 
-static const char *default_mode_auto = NULL;
 static const char *default_mode_autofp = NULL;
 
 const char *RunModeAFPGetDefaultMode(void)
@@ -67,7 +66,6 @@ const char *RunModeAFPGetDefaultMode(void)
 
 void RunModeIdsAFPRegister(void)
 {
-    default_mode_auto = "autofp";
     RunModeRegisterNewRunMode(RUNMODE_AFP_DEV, "auto",
                               "Multi threaded af-packet mode",
                               RunModeIdsAFPAuto);
index 1d7613b4d837324253a2859e5b3b02a224e54c06..358f25d56ad8b1701a3db8f98f8b05e486ec2827 100644 (file)
@@ -37,7 +37,6 @@
 #include "util-runmodes.h"
 #include "util-device.h"
 
-static const char *default_mode_auto = NULL;
 static const char *default_mode_autofp = NULL;
 
 
@@ -55,7 +54,6 @@ const char *RunModeIdsPfringGetDefaultMode(void)
 
 void RunModeIdsPfringRegister(void)
 {
-    default_mode_auto = "autofp";
     RunModeRegisterNewRunMode(RUNMODE_PFRING, "auto",
                               "Multi threaded pfring mode",
                               RunModeIdsPfringAuto);