From: Steve Holme Date: Thu, 7 Mar 2013 22:44:10 +0000 (+0000) Subject: email: Minor code tidy up following recent changes X-Git-Tag: curl-7_30_0~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc890906b152dfb96acc8e9f571124dbdf8d8416;p=thirdparty%2Fcurl.git email: Minor code tidy up following recent changes Removed unwanted braces and added variable initialisation. --- diff --git a/lib/imap.c b/lib/imap.c index 66dede9db0..48b4309cbf 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -767,7 +767,7 @@ static CURLcode imap_fetch(struct connectdata *conn) static CURLcode imap_append(struct connectdata *conn) { - CURLcode result; + CURLcode result = CURLE_OK; struct IMAP *imap = conn->data->state.proto.imap; char *mailbox; @@ -1685,9 +1685,8 @@ static CURLcode imap_block_statemach(struct connectdata *conn) CURLcode result = CURLE_OK; struct imap_conn *imapc = &conn->proto.imapc; - while(imapc->state != IMAP_STOP && !result) { + while(imapc->state != IMAP_STOP && !result) result = Curl_pp_statemach(&imapc->pp, TRUE); - } return result; } diff --git a/lib/pop3.c b/lib/pop3.c index 1924ece467..9592664159 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -1262,9 +1262,8 @@ static CURLcode pop3_block_statemach(struct connectdata *conn) CURLcode result = CURLE_OK; struct pop3_conn *pop3c = &conn->proto.pop3c; - while(pop3c->state != POP3_STOP && !result) { + while(pop3c->state != POP3_STOP && !result) result = Curl_pp_statemach(&pop3c->pp, TRUE); - } return result; } diff --git a/lib/smtp.c b/lib/smtp.c index 15e00a98cb..0f04397cc1 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -1254,9 +1254,8 @@ static CURLcode smtp_block_statemach(struct connectdata *conn) CURLcode result = CURLE_OK; struct smtp_conn *smtpc = &conn->proto.smtpc; - while(smtpc->state != SMTP_STOP && !result) { + while(smtpc->state != SMTP_STOP && !result) result = Curl_pp_statemach(&smtpc->pp, TRUE); - } return result; }