]> granicus.if.org Git - neomutt/commitdiff
boolify exact
authorRichard Russon <rich@flatcap.org>
Sat, 16 Feb 2019 12:45:22 +0000 (12:45 +0000)
committerRichard Russon <rich@flatcap.org>
Sat, 16 Feb 2019 14:53:12 +0000 (14:53 +0000)
pattern.c

index de51bb6026198faf5ca613fd2d6056c0ca194a12..2a67f36e8ea93ad1c3b693ae0aa540032380d8c4 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -616,7 +616,7 @@ static bool eat_date(struct Pattern *pat, struct Buffer *s, struct Buffer *err)
        =3d      exactly three days ago */
     time_t now = time(NULL);
     struct tm *tm = localtime(&now);
-    int exact = 0;
+    bool exact = false;
 
     if (buf.data[0] == '<')
     {
@@ -629,7 +629,7 @@ static bool eat_date(struct Pattern *pat, struct Buffer *s, struct Buffer *err)
       tm = &max;
 
       if (buf.data[0] == '=')
-        exact++;
+        exact = true;
     }
 
     /* Reset the HMS unless we are relative matching using one of those