projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5216c
)
src/daemon/utils_cache.c: Remove unnecessary cast.
author
Florian Forster
<octo@collectd.org>
Fri, 19 May 2017 06:34:37 +0000
(08:34 +0200)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/src/daemon/utils_cache.c
b/src/daemon/utils_cache.c
index
a23aef8
..
3386df9
100644
(file)
--- 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);