From: Ruben Kerkhof Date: Tue, 26 Jul 2016 14:14:02 +0000 (+0200) Subject: write_http: fix warning in new kairos support X-Git-Tag: collectd-5.6.0~144 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=798bfa02620d101b9cd580e9647e57e75ca17fa8;p=collectd.git write_http: fix warning in new kairos support Found by LLVM: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') --- diff --git a/src/utils_format_kairosdb.c b/src/utils_format_kairosdb.c index 281ce524..6258c492 100644 --- a/src/utils_format_kairosdb.c +++ b/src/utils_format_kairosdb.c @@ -99,7 +99,7 @@ static int kairosdb_escape_string (char *buffer, size_t buffer_size, /* {{{ */ static int values_to_kairosdb (char *buffer, size_t buffer_size, /* {{{ */ const data_set_t *ds, const value_list_t *vl, int store_rates, - int ds_idx) + size_t ds_idx) { size_t offset = 0; gauge_t *rates = NULL; @@ -222,7 +222,7 @@ static int value_list_to_kairosdb (char *buffer, size_t buffer_size, /* {{{ */ char temp[512]; size_t offset = 0; int status; - int i=0; + size_t i; memset (buffer, 0, buffer_size);