From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:26:37 +0000 (+0100) Subject: daemon/utils_cache.c: fix minor style issue X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=136f4be1b628d66f94b27a7609a7774e86250b54;p=collectd.git daemon/utils_cache.c: fix minor style issue --- 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;