X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fmatch_value.c;h=9b13aa86155ac3051fdc2de8f58a78c4e81f743c;hb=952a2f399229aa5e327959ba81d32dc47a4745df;hp=4d49984f618173b48323634a3ed34a1b85cde048;hpb=c21ce3b44f63d706b8b200a88047db74f1a51392;p=collectd.git diff --git a/src/match_value.c b/src/match_value.c index 4d49984f..9b13aa86 100644 --- a/src/match_value.c +++ b/src/match_value.c @@ -58,7 +58,7 @@ struct mv_match_s */ static void mv_free_match (mv_match_t *m) /* {{{ */ { - int i; + size_t i; if (m == NULL) return; @@ -200,7 +200,7 @@ static int mv_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ int status; int i; - m = (mv_match_t *) malloc (sizeof (*m)); + m = malloc (sizeof (*m)); if (m == NULL) { ERROR ("mv_create: malloc failed."); @@ -277,7 +277,7 @@ static int mv_match (const data_set_t *ds, const value_list_t *vl, /* {{{ */ mv_match_t *m; gauge_t *values; int status; - int i; + size_t i; if ((user_data == NULL) || (*user_data == NULL)) return (-1);