From 1e34eeecc5939118e644be5337612a0326781f8e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 3 Jul 2015 11:49:07 +0200 Subject: [PATCH] collectd-nagios: Fix -Wsign-conversion warnings. --- src/collectd-nagios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collectd-nagios.c b/src/collectd-nagios.c index 27190938..3d6039c4 100644 --- a/src/collectd-nagios.c +++ b/src/collectd-nagios.c @@ -104,7 +104,7 @@ static int consolitation_g = CON_NONE; static _Bool nan_is_error_g = 0; static char **match_ds_g = NULL; -static int match_ds_num_g = 0; +static size_t match_ds_num_g = 0; /* `strdup' is an XSI extension. I don't want to pull in all of XSI just for * that, so here's an own implementation.. It's easy enough. The GCC attributes @@ -148,7 +148,7 @@ static int filter_ds (size_t *values_num, return (RET_UNKNOWN); } - for (i = 0; i < (size_t) match_ds_num_g; i++) + for (i = 0; i < match_ds_num_g; i++) { size_t j; -- 2.30.2