X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthreshold.c;h=ed8312992b437c9984d6885309bc972f1450fb4d;hb=9c1acd10074995f6ec95eca6664c4bce4b7d7c1b;hp=45ee3b4d02c61b722419577ee607580dcdb4cb26;hpb=aedf67e69cbe93a6925fd1004a7c8b990aed4b0a;p=collectd.git diff --git a/src/threshold.c b/src/threshold.c index 45ee3b4d..ed831299 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -553,7 +553,7 @@ static int ut_report_state (const data_set_t *ds, { gauge_t value; gauge_t sum; - int i; + size_t i; sum = 0.0; for (i = 0; i < vl->values_len; i++) @@ -701,7 +701,7 @@ static int ut_check_one_threshold (const data_set_t *ds, { /* {{{ */ int ret = -1; int ds_index = -1; - int i; + size_t i; gauge_t values_copy[ds->ds_num]; memcpy (values_copy, values, sizeof (values_copy));