From 7642e53f0690ad677b4c6749ea231d0b5e3f3db8 Mon Sep 17 00:00:00 2001 From: Gerardo Iglesias Galvan Date: Tue, 15 Dec 2009 17:33:25 +0100 Subject: [PATCH] Fix warnings from previous patch. Add info to usage output. --- src/detect-engine.c | 2 +- src/eidps.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index 2943a294ad..e353f73b58 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -37,7 +37,7 @@ DetectEngineCtx *DetectEngineCtxInit(void) { memset(de_ctx,0,sizeof(DetectEngineCtx)); - if (ConfGetBool("engine.init_failure_fatal", &(de_ctx->failure_fatal)) != 1) { + if (ConfGetBool("engine.init_failure_fatal", (int *)&(de_ctx->failure_fatal)) != 1) { SCLogDebug("ConfGetBool could not load the value."); } diff --git a/src/eidps.c b/src/eidps.c index 2fbea6c0e8..c9fcb0dc9a 100644 --- a/src/eidps.c +++ b/src/eidps.c @@ -279,6 +279,8 @@ void usage(const char *progname) printf("\t-u : run the unittests and exit\n"); printf("\t-U, --unittest-filter=REGEX : filter unittests with a regex\n"); printf("\t--list-unittests : list unit tests\n"); + printf("\t--init-errors-fatal : enable fatal failure on signature init error\n"); + printf("\t--fatal-unittests : enable fatal failure on unittest error\n"); #endif /* UNITTESTS */ printf("\n"); }