]> granicus.if.org Git - neomutt/commitdiff
check_for_mailing_list
authorRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 11:55:55 +0000 (12:55 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 23:29:58 +0000 (00:29 +0100)
hdrline.c

index 11f54ac4668deb366deb6bb0fba8c6dd7ad35613..f19dfe6cd68762bc6fc21e5ef3346b00946ba6c6 100644 (file)
--- a/hdrline.c
+++ b/hdrline.c
@@ -74,7 +74,7 @@ bool mutt_is_subscribed_list (ADDRESS *addr)
  * If one is found, print pfx and the name of the list into buf, then
  * return 1.  Otherwise, simply return 0.
  */
-static int
+static bool
 check_for_mailing_list (ADDRESS *adr, const char *pfx, char *buf, int buflen)
 {
   for (; adr; adr = adr->next)
@@ -83,10 +83,10 @@ check_for_mailing_list (ADDRESS *adr, const char *pfx, char *buf, int buflen)
     {
       if (pfx && buf && buflen)
        snprintf (buf, buflen, "%s%s", pfx, mutt_get_name (adr));
-      return 1;
+      return true;
     }
   }
-  return 0;
+  return false;
 }
 
 /* Search for a mailing list in the list of addresses pointed to by adr.