From: Anton Rieger Date: Thu, 28 Sep 2017 21:43:12 +0000 (+0200) Subject: bool: convert function parameters in mutt.h X-Git-Tag: neomutt-20171006~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe9611746eb1889954258f446ff8519763f6162f;p=neomutt bool: convert function parameters in mutt.h * mutt_matches_ignore() --- diff --git a/mutt.h b/mutt.h index c93e39ece..01845ec72 100644 --- a/mutt.h +++ b/mutt.h @@ -312,7 +312,7 @@ enum QuadOptionVars void mutt_free_regex_list(struct RegexList **list); void mutt_free_replace_list(struct ReplaceList **list); -int mutt_matches_ignore(const char *s); +bool mutt_matches_ignore(const char *s); /* add an element to a list */ int mutt_remove_from_regex_list(struct RegexList **l, const char *str); diff --git a/muttlib.c b/muttlib.c index 379909f74..c62e143d6 100644 --- a/muttlib.c +++ b/muttlib.c @@ -178,7 +178,7 @@ void mutt_free_header(struct Header **h) * * checks Ignore and UnIgnore using mutt_list_match */ -int mutt_matches_ignore(const char *s) +bool mutt_matches_ignore(const char *s) { return mutt_list_match(s, &Ignore) && !mutt_list_match(s, &UnIgnore); }