]> granicus.if.org Git - neomutt/commitdiff
bool: convert function parameters in mutt.h 799/head
authorAnton Rieger <seishinryohosha@jikken.de>
Thu, 28 Sep 2017 21:43:12 +0000 (23:43 +0200)
committerRichard Russon <rich@flatcap.org>
Fri, 29 Sep 2017 12:59:31 +0000 (13:59 +0100)
* mutt_matches_ignore()

mutt.h
muttlib.c

diff --git a/mutt.h b/mutt.h
index c93e39ece94154bdefec802ea327c8f1a4c55af4..01845ec722c358ebc282030f202fc98e7734412d 100644 (file)
--- 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);
index 379909f7448f99a5cce8da9ebb02c483a83afb3a..c62e143d6da6466521ef6ef06a53c3f848c22987 100644 (file)
--- 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);
 }