projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20e6d9e
)
write_http: fix warning in new kairos support
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 26 Jul 2016 14:14:02 +0000
(16:14 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 26 Jul 2016 14:15:51 +0000
(16:15 +0200)
Found by LLVM:
comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long')
src/utils_format_kairosdb.c
patch
|
blob
|
history
diff --git
a/src/utils_format_kairosdb.c
b/src/utils_format_kairosdb.c
index
281ce52
..
6258c49
100644
(file)
--- 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,
-
in
t 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);