projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix signed / unsigned comparison errors.
[collectd.git]
/
src
/
daemon
/
plugin.c
diff --git
a/src/daemon/plugin.c
b/src/daemon/plugin.c
index
88a2af4
..
51cc425
100644
(file)
--- a/
src/daemon/plugin.c
+++ b/
src/daemon/plugin.c
@@
-889,7
+889,7
@@
static void start_write_threads (size_t num) /* {{{ */
static void stop_write_threads (void) /* {{{ */
{
write_queue_t *q;
static void stop_write_threads (void) /* {{{ */
{
write_queue_t *q;
-
in
t i;
+
size_
t i;
if (write_threads == NULL)
return;
if (write_threads == NULL)
return;
@@
-930,7
+930,7
@@
static void stop_write_threads (void) /* {{{ */
if (i > 0)
{
if (i > 0)
{
- WARNING ("plugin: %
i
value list%s left after shutting down "
+ WARNING ("plugin: %
zu
value list%s left after shutting down "
"the write threads.",
i, (i == 1) ? " was" : "s were");
}
"the write threads.",
i, (i == 1) ? " was" : "s were");
}
@@
-1440,7
+1440,7
@@
static void plugin_free_data_sets (void)
int plugin_register_data_set (const data_set_t *ds)
{
data_set_t *ds_copy;
int plugin_register_data_set (const data_set_t *ds)
{
data_set_t *ds_copy;
-
in
t i;
+
size_
t i;
if ((data_sets != NULL)
&& (c_avl_get (data_sets, ds->type, NULL) == 0))
if ((data_sets != NULL)
&& (c_avl_get (data_sets, ds->type, NULL) == 0))
@@
-2137,8
+2137,8
@@
static int plugin_dispatch_values_internal (value_list_t *vl)
if (ds->ds_num != vl->values_len)
{
ERROR ("plugin_dispatch_values: ds->type = %s: "
if (ds->ds_num != vl->values_len)
{
ERROR ("plugin_dispatch_values: ds->type = %s: "
- "(ds->ds_num = %
i
) != "
- "(vl->values_len = %
i
)",
+ "(ds->ds_num = %
zu
) != "
+ "(vl->values_len = %
zu
)",
ds->type, ds->ds_num, vl->values_len);
return (-1);
}
ds->type, ds->ds_num, vl->values_len);
return (-1);
}