diff options
Diffstat (limited to 'libs/libcurl/src/imap.c')
-rw-r--r-- | libs/libcurl/src/imap.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libs/libcurl/src/imap.c b/libs/libcurl/src/imap.c index 7d097b95d5..c36a1a1974 100644 --- a/libs/libcurl/src/imap.c +++ b/libs/libcurl/src/imap.c @@ -520,8 +520,8 @@ static CURLcode imap_perform_login(struct Curl_easy *data, }
/* Make sure the username and password are in the correct atom format */
- user = imap_atom(conn->user, false);
- passwd = imap_atom(conn->passwd, false);
+ user = imap_atom(conn->user, FALSE);
+ passwd = imap_atom(conn->passwd, FALSE);
/* Send the LOGIN command */
result = imap_sendf(data, "LOGIN %s %s", user ? user : "",
@@ -655,7 +655,7 @@ static CURLcode imap_perform_list(struct Curl_easy *data) imap->custom_params ? imap->custom_params : "");
else {
/* Make sure the mailbox is in the correct atom format if necessary */
- char *mailbox = imap->mailbox ? imap_atom(imap->mailbox, true)
+ char *mailbox = imap->mailbox ? imap_atom(imap->mailbox, TRUE)
: strdup("");
if(!mailbox)
return CURLE_OUT_OF_MEMORY;
@@ -697,7 +697,7 @@ static CURLcode imap_perform_select(struct Curl_easy *data) }
/* Make sure the mailbox is in the correct atom format */
- mailbox = imap_atom(imap->mailbox, false);
+ mailbox = imap_atom(imap->mailbox, FALSE);
if(!mailbox)
return CURLE_OUT_OF_MEMORY;
@@ -809,7 +809,7 @@ static CURLcode imap_perform_append(struct Curl_easy *data) }
/* Make sure the mailbox is in the correct atom format */
- mailbox = imap_atom(imap->mailbox, false);
+ mailbox = imap_atom(imap->mailbox, FALSE);
if(!mailbox)
return CURLE_OUT_OF_MEMORY;
@@ -1399,7 +1399,7 @@ static CURLcode imap_multi_statemach(struct Curl_easy *data, bool *done) }
result = Curl_pp_statemach(data, &imapc->pp, FALSE, FALSE);
- *done = (imapc->state == IMAP_STOP) ? TRUE : FALSE;
+ *done = (imapc->state == IMAP_STOP);
return result;
}
@@ -1859,7 +1859,7 @@ static bool imap_is_bchar(char ch) /* Performing the alnum check with this macro is faster because of ASCII
arithmetic */
if(ISALNUM(ch))
- return true;
+ return TRUE;
switch(ch) {
/* bchar */
@@ -1873,10 +1873,10 @@ static bool imap_is_bchar(char ch) case '+': case ',':
/* bchar -> achar -> uchar -> pct-encoded */
case '%': /* HEXDIG chars are already included above */
- return true;
+ return TRUE;
default:
- return false;
+ return FALSE;
}
}
@@ -1891,7 +1891,7 @@ static CURLcode imap_parse_url_options(struct connectdata *conn) CURLcode result = CURLE_OK;
struct imap_conn *imapc = &conn->proto.imapc;
const char *ptr = conn->options;
- bool prefer_login = false;
+ bool prefer_login = FALSE;
while(!result && ptr && *ptr) {
const char *key = ptr;
@@ -1907,16 +1907,16 @@ static CURLcode imap_parse_url_options(struct connectdata *conn) if(strncasecompare(key, "AUTH=+LOGIN", 11)) {
/* User prefers plaintext LOGIN over any SASL, including SASL LOGIN */
- prefer_login = true;
+ prefer_login = TRUE;
imapc->sasl.prefmech = SASL_AUTH_NONE;
}
else if(strncasecompare(key, "AUTH=", 5)) {
- prefer_login = false;
+ prefer_login = FALSE;
result = Curl_sasl_parse_url_auth_option(&imapc->sasl,
value, ptr - value);
}
else {
- prefer_login = false;
+ prefer_login = FALSE;
result = CURLE_URL_MALFORMAT;
}
|