X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_match.c;h=5273c9018ccf6842373f88e96cdf2807cbbf156d;hb=b7ebbd511e7fb9faf40a50904d6634824f5d8e52;hp=b4cd5171c1a573a095fa605216b994ac5d9e0534;hpb=69b8a9a1af204685dfdfaf1279a0f2928e0bbb32;p=collectd.git diff --git a/src/daemon/utils_match.c b/src/daemon/utils_match.c index b4cd5171..5273c901 100644 --- a/src/daemon/utils_match.c +++ b/src/daemon/utils_match.c @@ -25,6 +25,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" @@ -323,7 +324,6 @@ int match_apply (cu_match_t *obj, const char *str) regmatch_t re_match[32]; char *matches[32] = { 0 }; size_t matches_num; - size_t i; if ((obj == NULL) || (str == NULL)) return (-1); @@ -375,7 +375,7 @@ int match_apply (cu_match_t *obj, const char *str) } } - for (i = 0; i < matches_num; i++) + for (size_t i = 0; i < matches_num; i++) { sfree (matches[i]); }