From 37bee951b23db2dbd41a62693735e7d96f7dba8a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 20 Aug 2008 12:06:25 +0200 Subject: [PATCH] src/plugin.c: Pass a second argument to the `flush' callbacks. The flush callbacks not take two parameters, this was forgotten here. --- src/plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin.c b/src/plugin.c index cedd8b0f..629a9f89 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -686,7 +686,7 @@ int plugin_flush_one (int timeout, const char *name) void plugin_flush_all (int timeout) { - int (*callback) (int); + int (*callback) (int timeout, const char *identifier); llentry_t *le; if (list_flush == NULL) @@ -695,10 +695,10 @@ void plugin_flush_all (int timeout) le = llist_head (list_flush); while (le != NULL) { - callback = (int (*) (int)) le->value; + callback = (int (*) (int, const char *)) le->value; le = le->next; - (*callback) (timeout); + (*callback) (timeout, NULL); } } /* void plugin_flush_all */ -- 2.30.2