]> granicus.if.org Git - neomutt/commitdiff
fix some bools
authorRichard Russon <rich@flatcap.org>
Mon, 22 May 2017 12:06:41 +0000 (13:06 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 23 May 2017 19:46:37 +0000 (20:46 +0100)
Replace 0/1 with false/true

muttlib.c
newsrc.c
recvcmd.c

index 9bfc903a3c80231a2aae9e31cada0f11799220fb..bed0d556d1a8c2f22c152b813cf727efb7a0b6b2 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -2080,7 +2080,7 @@ void mutt_free_replace_list(struct ReplaceList **list)
 bool mutt_match_rx_list(const char *s, struct RxList *l)
 {
   if (!s)
-    return 0;
+    return false;
 
   for (; l; l = l->next)
   {
index e5bb191aa6d1502aef3c8a01a084d4edd06d5817..c944eb490bf0bfa32b83746399ab019beafa2434 100644 (file)
--- a/newsrc.c
+++ b/newsrc.c
@@ -540,7 +540,7 @@ int nntp_add_group(char *line, void *data)
   nntp_data->deleted = false;
   nntp_data->firstMessage = first;
   nntp_data->lastMessage = last;
-  nntp_data->allowed = (mod == 'y') || (mod == 'm') ? true : false;
+  nntp_data->allowed = (mod == 'y') || (mod == 'm');
   mutt_str_replace(&nntp_data->desc, desc);
   if (nntp_data->newsrc_ent || nntp_data->lastCached)
     nntp_group_unread_stat(nntp_data);
index 6bd3adc771fdceaf9361be23e18eae463768d2aa..c5b35d5cdcec893987e1196ab7c9f602396bc5f9 100644 (file)
--- a/recvcmd.c
+++ b/recvcmd.c
@@ -302,10 +302,10 @@ static bool is_parent(short i, struct AttachPtr **idx, short idxlen, struct Body
   while ((++i < idxlen) && idx[i]->level > level)
   {
     if (idx[i]->content == cur)
-      return 1;
+      return true;
   }
 
-  return 0;
+  return false;
 }
 
 static struct Header *find_parent(struct AttachPtr **idx, short idxlen,