From: Victor Julien Date: Fri, 4 Sep 2020 08:44:54 +0000 (+0200) Subject: commandline: minor formatting fixes X-Git-Tag: suricata-6.0.0-rc1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71297f575f038100c885413ed3eead31a9e13d68;p=thirdparty%2Fsuricata.git commandline: minor formatting fixes --- diff --git a/src/suricata.c b/src/suricata.c index 676fc7dfa7..35fafaddd3 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1478,17 +1478,15 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri) " to receive packets using --dag."); return TM_ECODE_FAILED; #endif /* HAVE_DAG */ - } - else if (strcmp((long_opts[option_index]).name, "napatech") == 0) { + } else if (strcmp((long_opts[option_index]).name, "napatech") == 0) { #ifdef HAVE_NAPATECH - suri->run_mode = RUNMODE_NAPATECH; + suri->run_mode = RUNMODE_NAPATECH; #else - SCLogError(SC_ERR_NAPATECH_REQUIRED, "libntapi and a Napatech adapter are required" - " to capture packets using --napatech."); - return TM_ECODE_FAILED; + SCLogError(SC_ERR_NAPATECH_REQUIRED, "libntapi and a Napatech adapter are required" + " to capture packets using --napatech."); + return TM_ECODE_FAILED; #endif /* HAVE_NAPATECH */ - } - else if(strcmp((long_opts[option_index]).name, "pcap-buffer-size") == 0) { + } else if (strcmp((long_opts[option_index]).name, "pcap-buffer-size") == 0) { #ifdef HAVE_PCAP_SET_BUFF if (ConfSetFinal("pcap.buffer-size", optarg) != 1) { fprintf(stderr, "ERROR: Failed to set pcap-buffer-size.\n"); @@ -1498,12 +1496,10 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri) SCLogError(SC_ERR_NO_PCAP_SET_BUFFER_SIZE, "The version of libpcap you have" " doesn't support setting buffer size."); #endif /* HAVE_PCAP_SET_BUFF */ - } - else if(strcmp((long_opts[option_index]).name, "build-info") == 0) { + } else if (strcmp((long_opts[option_index]).name, "build-info") == 0) { suri->run_mode = RUNMODE_PRINT_BUILDINFO; return TM_ECODE_OK; - } - else if(strcmp((long_opts[option_index]).name, "windivert-forward") == 0) { + } else if (strcmp((long_opts[option_index]).name, "windivert-forward") == 0) { #ifdef WINDIVERT if (suri->run_mode == RUNMODE_UNKNOWN) { suri->run_mode = RUNMODE_WINDIVERT;