From: Richard Russon Date: Mon, 17 Sep 2018 15:06:53 +0000 (+0100) Subject: boolify ImapMboxData data members X-Git-Tag: 2019-10-25~637 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01c2e0454dcf09bb88fb497dd1726ad28b90171a;p=neomutt boolify ImapMboxData data members --- diff --git a/imap/command.c b/imap/command.c index f4447fe03..80c885912 100644 --- a/imap/command.c +++ b/imap/command.c @@ -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; } } diff --git a/imap/imap_private.h b/imap/imap_private.h index 9281fb6fb..487b8c51f 100644 --- a/imap/imap_private.h +++ b/imap/imap_private.h @@ -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. */