From 136f4be1b628d66f94b27a7609a7774e86250b54 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 15 Dec 2018 18:26:37 +0100 Subject: [PATCH] daemon/utils_cache.c: fix minor style issue --- src/daemon/utils_cache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/daemon/utils_cache.c b/src/daemon/utils_cache.c index e09b0999..cdb76422 100644 --- a/src/daemon/utils_cache.c +++ b/src/daemon/utils_cache.c @@ -826,9 +826,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(void) { - uc_iter_t *iter; - - iter = (uc_iter_t *)calloc(1, sizeof(*iter)); + uc_iter_t *iter = calloc(1, sizeof(*iter)); if (iter == NULL) return NULL; -- 2.11.0