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
/
match_empty_counter.c
diff --git
a/src/match_empty_counter.c
b/src/match_empty_counter.c
index
f4b94ee
..
80a29ac
100644
(file)
--- a/
src/match_empty_counter.c
+++ b/
src/match_empty_counter.c
@@
-56,9
+56,8
@@
static int mec_match (__attribute__((unused)) const data_set_t *ds, /* {{{ */
{
int num_counters = 0;
int num_empty = 0;
{
int num_counters = 0;
int num_empty = 0;
- size_t i;
- for (i = 0; i < ds->ds_num; i++)
+ for (
size_t
i = 0; i < ds->ds_num; i++)
{
if ((ds->ds[i].type != DS_TYPE_DERIVE)
&& (ds->ds[i].type != DS_TYPE_COUNTER))
{
if ((ds->ds[i].type != DS_TYPE_DERIVE)
&& (ds->ds[i].type != DS_TYPE_COUNTER))