From: Florian Forster Date: Sat, 6 Nov 2010 13:26:16 +0000 (+0100) Subject: src/{collectd,plugin}.c: Don't cast "-1" to cdtime_t. X-Git-Tag: collectd-5.0.0-beta0~19^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eaad4caa286149becaf08469cc4b08250d8beb2b;p=collectd.git src/{collectd,plugin}.c: Don't cast "-1" to cdtime_t. --- diff --git a/src/collectd.c b/src/collectd.c index 4f5fac90..d33d1d66 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -51,7 +51,9 @@ static int loop = 0; static void *do_flush (void __attribute__((unused)) *arg) { INFO ("Flushing all data."); - plugin_flush (NULL, -1, NULL); + plugin_flush (/* plugin = */ NULL, + /* timeout = */ 0, + /* ident = */ NULL); INFO ("Finished flushing all data."); pthread_exit (NULL); return NULL; diff --git a/src/plugin.c b/src/plugin.c index 2e25758e..f6bc506c 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -1290,7 +1290,8 @@ void plugin_shutdown_all (void) destroy_read_heap (); - plugin_flush (/* plugin = */ NULL, /* timeout = */ -1, + plugin_flush (/* plugin = */ NULL, + /* timeout = */ 0, /* identifier = */ NULL); le = NULL;