projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1856 from rubenk/snmp-dont-dispatch-values-with-empty-type-instance
[collectd.git]
/
src
/
utils_cmd_getval.c
diff --git
a/src/utils_cmd_getval.c
b/src/utils_cmd_getval.c
index
1185a03
..
cd88760
100644
(file)
--- a/
src/utils_cmd_getval.c
+++ b/
src/utils_cmd_getval.c
@@
-61,7
+61,6
@@
int handle_getval (FILE *fh, char *buffer)
const data_set_t *ds;
int status;
const data_set_t *ds;
int status;
- size_t i;
if ((fh == NULL) || (buffer == NULL))
return (-1);
if ((fh == NULL) || (buffer == NULL))
return (-1);
@@
-146,7
+145,7
@@
int handle_getval (FILE *fh, char *buffer)
print_to_socket (fh, "%zu Value%s found\n", values_num,
(values_num == 1) ? "" : "s");
print_to_socket (fh, "%zu Value%s found\n", values_num,
(values_num == 1) ? "" : "s");
- for (i = 0; i < values_num; i++)
+ for (
size_t
i = 0; i < values_num; i++)
{
print_to_socket (fh, "%s=", ds->ds[i].name);
if (isnan (values[i]))
{
print_to_socket (fh, "%s=", ds->ds[i].name);
if (isnan (values[i]))