From 11a78de0c8e2c51fbb470fc598dd8a021bde0ee9 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sat, 3 Nov 2018 21:54:44 +0100 Subject: [PATCH] Fixed signedness of count_match() Signed-off-by: Janos SUTO --- src/rules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules.c b/src/rules.c index 81bc3528..eea367aa 100644 --- a/src/rules.c +++ b/src/rules.c @@ -194,8 +194,8 @@ struct rule *create_rule_item(struct rule_cond *rule_cond){ } -unsigned int count_match(struct rule *p, struct parser_state *state, int size, int spam){ - unsigned int ismatch=0; +int count_match(struct rule *p, struct parser_state *state, int size, int spam){ + int ismatch=0; size_t nmatch=0; ismatch += check_spam_rule(spam, p->spam);