suricata: use function to print version

pull/479/head
Eric Leblond 13 years ago
parent 4f789dbe84
commit 1a6983ee19

@ -1618,13 +1618,7 @@ int main(int argc, char **argv)
if (suri.run_mode == RUNMODE_UNITTEST)
return RunUnittests(0, suri.regex_arg);
#ifdef REVISION
SCLogInfo("This is %s version %s (rev %s)", PROG_NAME, PROG_VER, xstr(REVISION));
#elif defined RELEASE
SCLogInfo("This is %s version %s RELEASE", PROG_NAME, PROG_VER);
#else
SCLogInfo("This is %s version %s", PROG_NAME, PROG_VER);
#endif
SuriPrintVersion();
SetBpfString(optind, argv);

Loading…
Cancel
Save