From 1a0d78fa7ea83b9913f5aa0146009f06846de6d1 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 22 Nov 2008 00:58:36 +0100 Subject: [PATCH] src/configfile.c: Dispatch the `Chain' blocks to fc_configure. --- src/configfile.c | 3 +++ src/plugin.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/configfile.c b/src/configfile.c index f9c20fc3..bdb63a9a 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -30,6 +30,7 @@ #include "configfile.h" #include "types_list.h" #include "utils_threshold.h" +#include "filter_chain.h" #if HAVE_WORDEXP_H # include @@ -340,6 +341,8 @@ static int dispatch_block (oconfig_item_t *ci) return (dispatch_block_plugin (ci)); else if (strcasecmp (ci->key, "Threshold") == 0) return (ut_config (ci)); + else if (strcasecmp (ci->key, "Chain") == 0) + return (fc_configure (ci)); return (0); } diff --git a/src/plugin.c b/src/plugin.c index f222e3ac..b0043362 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -705,7 +705,7 @@ int plugin_write (const char *plugin, /* {{{ */ int success = 0; int failure = 0; - le = llist_head (list_write); + le = llist_head (list_flush); while (le != NULL) { callback = le->value; @@ -725,7 +725,7 @@ int plugin_write (const char *plugin, /* {{{ */ } else /* plugin != NULL */ { - le = llist_head (list_write); + le = llist_head (list_flush); while (le != NULL) { if (strcasecmp (plugin, le->key) == 0) -- 2.11.0