From: Florian Forster Date: Fri, 19 May 2017 06:34:37 +0000 (+0200) Subject: src/daemon/utils_cache.c: Remove unnecessary cast. X-Git-Tag: collectd-5.7.2~4 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=7173100796caa3ce86d373245767e3d185d09817 src/daemon/utils_cache.c: Remove unnecessary cast. (data_set_t).ds_num has been changed to be a size_t. --- diff --git a/src/daemon/utils_cache.c b/src/daemon/utils_cache.c index a23aef88..3386df9a 100644 --- a/src/daemon/utils_cache.c +++ b/src/daemon/utils_cache.c @@ -465,7 +465,7 @@ gauge_t *uc_get_rate(const data_set_t *ds, const value_list_t *vl) { /* This is important - the caller has no other way of knowing how many * values are returned. */ - if (ret_num != (size_t)ds->ds_num) { + if (ret_num != ds->ds_num) { ERROR("utils_cache: uc_get_rate: ds[%s] has %zu values, " "but uc_get_rate_by_name returned %zu.", ds->type, ds->ds_num, ret_num);