From eaad4caa286149becaf08469cc4b08250d8beb2b Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 6 Nov 2010 14:26:16 +0100 Subject: [PATCH] src/{collectd,plugin}.c: Don't cast "-1" to cdtime_t. --- src/collectd.c | 4 +++- src/plugin.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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; -- 2.30.2