From: Florian Forster Date: Wed, 20 Aug 2008 10:06:25 +0000 (+0200) Subject: src/plugin.c: Pass a second argument to the `flush' callbacks. X-Git-Tag: collectd-4.5.0~64 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=37bee951b23db2dbd41a62693735e7d96f7dba8a;p=collectd.git src/plugin.c: Pass a second argument to the `flush' callbacks. The flush callbacks not take two parameters, this was forgotten here. --- 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 */