X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcollectd-nagios.c;h=3d6039c47d519d7b3f8e6d217c7d65882c7b74bc;hb=1b4d95b869063e619bd7aae54cf37c5a1b91fbee;hp=271909389cfcbf716cc5d1c2270a703bd2b29c04;hpb=446a764be3e33b6fa48b93049751c051724ee650;p=collectd.git 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;