X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fthreshold.c;h=38c7efb016d73a1d62bd10bb3efb0e5670caf1e1;hb=1c790e620e1d9b8f550290959e7cd8ec6ba549e9;hp=8dcb711d5e6004bb82d266b8d9e950242681c50d;hpb=b914b8bf2c6580fd78836399e0aaa851eb4883c5;p=collectd.git diff --git a/src/threshold.c b/src/threshold.c index 8dcb711d..38c7efb0 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));