]> granicus.if.org Git - neomutt/commitdiff
boolify ImapMboxData data members
authorRichard Russon <rich@flatcap.org>
Mon, 17 Sep 2018 15:06:53 +0000 (16:06 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 17 Sep 2018 15:06:53 +0000 (16:06 +0100)
imap/command.c
imap/imap_private.h

index f4447fe033f21823775f5d304a8428516227e3ae..80c8859123943c9565bf4202a1788a7e027b3e52 100644 (file)
@@ -950,10 +950,10 @@ static void cmd_parse_enabled(struct ImapMboxData *mdata, const char *s)
     if ((mutt_str_strncasecmp(s, "UTF8=ACCEPT", 11) == 0) ||
         (mutt_str_strncasecmp(s, "UTF8=ONLY", 9) == 0))
     {
-      mdata->unicode = 1;
+      mdata->unicode = true;
     }
     if (mutt_str_strncasecmp(s, "QRESYNC", 7) == 0)
-      mdata->qresync = 1;
+      mdata->qresync = true;
   }
 }
 
index 9281fb6fbc24f6bd99943aeaa7ec81b9950bd756..487b8c51f8487410d83157bb10f42780cd072229 100644 (file)
@@ -227,11 +227,8 @@ struct ImapMboxData
   char *buf;
   size_t blen;
 
-  /* If nonzero, we can send UTF-8, and the server will use UTF8 rather
-   * than mUTF7 */
-  int unicode;
-
-  int qresync;  /* Set to 1 if QRESYNC is successfully ENABLE'd */
+  bool unicode; /* If true, we can send UTF-8, and the server will use UTF8 rather than mUTF7 */
+  bool qresync; /* true, if QRESYNC is successfully ENABLE'd */
 
   /* if set, the response parser will store results for complicated commands
    * here. */