outputs: small code cleanup

pull/2174/head
Victor Julien 10 years ago
parent f397e7bfc2
commit 7188c2630f

@ -718,10 +718,14 @@ static void SetupOutput(const char *name, OutputModule *module, OutputCtx *outpu
}
}
static void RunModeInitializeEveOutput(ConfNode *conf, OutputCtx *parent_ctx) {
static void RunModeInitializeEveOutput(ConfNode *conf, OutputCtx *parent_ctx)
{
ConfNode *types = ConfNodeLookupChild(conf, "types");
SCLogDebug("types %p", types);
if (types != NULL) {
if (types == NULL) {
return;
}
ConfNode *type = NULL;
TAILQ_FOREACH(type, &types->head, next) {
SCLogConfig("enabling 'eve-log' module '%s'", type->val);
@ -771,7 +775,6 @@ static void RunModeInitializeEveOutput(ConfNode *conf, OutputCtx *parent_ctx) {
continue;
}
}
}
}
static void RunModeInitializeLuaOutput(ConfNode *conf, OutputCtx *parent_ctx)

Loading…
Cancel
Save