From: Ruben Kerkhof Date: Thu, 9 Jun 2016 21:09:18 +0000 (+0200) Subject: uc_get_iterator: use ansi function declaration X-Git-Tag: collectd-5.6.0~225^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e7ff69ca970e01edb1b15d79fc1b8dcfaa43e597;p=collectd.git uc_get_iterator: use ansi function declaration In file included from common.c:37:0: utils_cache.h:76:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] uc_iter_t *uc_get_iterator (); ^ --- diff --git a/src/daemon/utils_cache.c b/src/daemon/utils_cache.c index 321747de..bf8c901b 100644 --- a/src/daemon/utils_cache.c +++ b/src/daemon/utils_cache.c @@ -879,7 +879,7 @@ int uc_inc_hits (const data_set_t *ds, const value_list_t *vl, int step) /* * Iterator interface */ -uc_iter_t *uc_get_iterator () +uc_iter_t *uc_get_iterator (void) { uc_iter_t *iter; diff --git a/src/daemon/utils_cache.h b/src/daemon/utils_cache.h index efef31e4..6c6a883c 100644 --- a/src/daemon/utils_cache.h +++ b/src/daemon/utils_cache.h @@ -73,7 +73,7 @@ typedef struct uc_iter_s uc_iter_t; * RETURN VALUE * An iterator object on success or NULL else. */ -uc_iter_t *uc_get_iterator (); +uc_iter_t *uc_get_iterator (void); /* * NAME