src/daemon/utils_cache.c: Remove unnecessary cast.
authorFlorian Forster <octo@collectd.org>
Fri, 19 May 2017 06:34:37 +0000 (08:34 +0200)
committerFlorian Forster <octo@collectd.org>
Fri, 19 May 2017 06:34:37 +0000 (08:34 +0200)
(data_set_t).ds_num has been changed to be a size_t.

src/daemon/utils_cache.c

index a23aef8..3386df9 100644 (file)
@@ -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);