From: Florian Forster Date: Fri, 3 Jul 2015 09:49:07 +0000 (+0200) Subject: collectd-nagios: Fix -Wsign-conversion warnings. X-Git-Tag: collectd-5.6.0~656 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1e34eeecc5939118e644be5337612a0326781f8e;p=collectd.git collectd-nagios: Fix -Wsign-conversion warnings. --- 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;