From 798bfa02620d101b9cd580e9647e57e75ca17fa8 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 26 Jul 2016 16:14:02 +0200 Subject: [PATCH] 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') --- src/utils_format_kairosdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2