runmode: remove unused variable.

default_mode_auto is not used anymore and can be removed.
pull/866/head
Eric Leblond 12 years ago
parent a6bb86a9e0
commit 79de8c8f4b

@ -57,7 +57,6 @@
extern int max_pending_packets; extern int max_pending_packets;
static const char *default_mode_auto = NULL;
static const char *default_mode_autofp = NULL; static const char *default_mode_autofp = NULL;
const char *RunModeAFPGetDefaultMode(void) const char *RunModeAFPGetDefaultMode(void)
@ -67,7 +66,6 @@ const char *RunModeAFPGetDefaultMode(void)
void RunModeIdsAFPRegister(void) void RunModeIdsAFPRegister(void)
{ {
default_mode_auto = "autofp";
RunModeRegisterNewRunMode(RUNMODE_AFP_DEV, "auto", RunModeRegisterNewRunMode(RUNMODE_AFP_DEV, "auto",
"Multi threaded af-packet mode", "Multi threaded af-packet mode",
RunModeIdsAFPAuto); RunModeIdsAFPAuto);

@ -37,7 +37,6 @@
#include "util-runmodes.h" #include "util-runmodes.h"
#include "util-device.h" #include "util-device.h"
static const char *default_mode_auto = NULL;
static const char *default_mode_autofp = NULL; static const char *default_mode_autofp = NULL;
@ -55,7 +54,6 @@ const char *RunModeIdsPfringGetDefaultMode(void)
void RunModeIdsPfringRegister(void) void RunModeIdsPfringRegister(void)
{ {
default_mode_auto = "autofp";
RunModeRegisterNewRunMode(RUNMODE_PFRING, "auto", RunModeRegisterNewRunMode(RUNMODE_PFRING, "auto",
"Multi threaded pfring mode", "Multi threaded pfring mode",
RunModeIdsPfringAuto); RunModeIdsPfringAuto);

Loading…
Cancel
Save