]> granicus.if.org Git - neomutt/commitdiff
is_day_name
authorRichard Russon <rich@flatcap.org>
Mon, 10 Apr 2017 20:39:26 +0000 (21:39 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 23:29:59 +0000 (00:29 +0100)
from.c

diff --git a/from.c b/from.c
index be79ded5c0ac405520d7a12fae44e5acc1f5992b..ffd1ec1ab41bb0f22b41776aa1f2d1824364aa9d 100644 (file)
--- a/from.c
+++ b/from.c
@@ -40,16 +40,16 @@ int mutt_check_month (const char *s)
   return -1; /* error */
 }
 
-static int is_day_name (const char *s)
+static bool is_day_name (const char *s)
 {
   int i;
 
   if ((strlen (s) < 3) || !*(s + 3) || !ISSPACE (*(s+3)))
-    return 0;
+    return false;
   for (i=0; i<7; i++)
     if (mutt_strncasecmp (s, Weekdays[i], 3) == 0)
-      return 1;
-  return 0;
+      return true;
+  return false;
 }
 
 /*