From e7ff69ca970e01edb1b15d79fc1b8dcfaa43e597 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Thu, 9 Jun 2016 23:09:18 +0200 Subject: [PATCH] uc_get_iterator: use ansi function declaration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 (); ^ --- src/daemon/utils_cache.c | 2 +- src/daemon/utils_cache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2