]> granicus.if.org Git - neomutt/commitdiff
compare_flags
authorRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 11:57:28 +0000 (12:57 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 23:29:59 +0000 (00:29 +0100)
imap/imap.c

index f024fd81c171d0c73828ef3343ae66a1c9f5325c..07da44b37c1ef0c84c1bac60b35faad4d7b1139e 100644 (file)
@@ -1034,22 +1034,22 @@ out:
 }
 
 /* returns 0 if mutt's flags match cached server flags */
-static int compare_flags (HEADER* h)
+static bool compare_flags (HEADER* h)
 {
   IMAP_HEADER_DATA* hd = (IMAP_HEADER_DATA*)h->data;
 
   if (h->read != hd->read)
-    return 1;
+    return true;
   if (h->old != hd->old)
-    return 1;
+    return true;
   if (h->flagged != hd->flagged)
-    return 1;
+    return true;
   if (h->replied != hd->replied)
-    return 1;
+    return true;
   if (h->deleted != hd->deleted)
-    return 1;
+    return true;
 
-  return 0;
+  return false;
 }
 
 /* Update the IMAP server to reflect the flags a single message.  */