aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-03-02 20:29:27 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-03-02 20:29:27 +0000
commit0f64dd086a3932252be963ff5fa7efc21ba7b2c9 (patch)
tree26467143d7e1a6e4abbbde223e47d46a66a71440 /lib/imap.c
parent459e1bffeed4355eac5432beb056343122625b51 (diff)
imap: Standardised imapcode condition tests
For consistency changed two if(constant != imapcode) tests to be if(imapcode != constant).
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 120686cec..c34a0578d 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -1287,7 +1287,7 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode,
(void)instate; /* no use for this yet */
- if('*' != imapcode) {
+ if(imapcode != '*') {
Curl_pgrsSetDownloadSize(data, 0);
state(conn, IMAP_STOP);
return CURLE_REMOTE_FILE_NOT_FOUND; /* TODO: Fix error code */
@@ -1375,7 +1375,7 @@ static CURLcode imap_state_fetch_final_resp(struct connectdata *conn,
(void)instate; /* No use for this yet */
- if('O' != imapcode)
+ if(imapcode != 'O')
result = CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: Fix error code */
else
result = CURLE_OK;