Skip to content

Commit

Permalink
pop3.c: Small code tidy up
Browse files Browse the repository at this point in the history
Corrected lines exceeding 78 characters.

Repositioned some comments and added extra clarity.
  • Loading branch information
captain-caveman2k committed Jun 2, 2012
1 parent cfa81b8 commit 1fa2af5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lib/pop3.c
Expand Up @@ -367,7 +367,7 @@ static CURLcode pop3_authenticate(struct connectdata *conn)
}
else {
infof(conn->data, "No known SASL auth mechanisms supported!\n");
result = CURLE_LOGIN_DENIED; /* Other mechanisms not supported */
result = CURLE_LOGIN_DENIED; /* Other mechanisms not supported */
}

if(!result) {
Expand Down Expand Up @@ -666,7 +666,8 @@ static CURLcode pop3_state_auth_final_resp(struct connectdata *conn,
result = CURLE_LOGIN_DENIED;
}

state(conn, POP3_STOP); /* End of connect phase */
/* End of connect phase */
state(conn, POP3_STOP);

return result;
}
Expand Down Expand Up @@ -713,7 +714,8 @@ static CURLcode pop3_state_pass_resp(struct connectdata *conn,
result = CURLE_LOGIN_DENIED;
}

state(conn, POP3_STOP); /* End of connect phase */
/* End of connect phase */
state(conn, POP3_STOP);

return result;
}
Expand Down Expand Up @@ -768,6 +770,7 @@ static CURLcode pop3_state_command_resp(struct connectdata *conn,
pp->cache_size = 0;
}

/* End of do phase */
state(conn, POP3_STOP);

return result;
Expand Down Expand Up @@ -852,15 +855,17 @@ static CURLcode pop3_statemach_act(struct connectdata *conn)
break;

case POP3_AUTH_LOGIN_PASSWD:
result = pop3_state_auth_login_password_resp(conn, pop3code, pop3c->state);
result = pop3_state_auth_login_password_resp(conn, pop3code,
pop3c->state);
break;

case POP3_AUTH_NTLM:
result = pop3_state_auth_ntlm_resp(conn, pop3code, pop3c->state);
break;

case POP3_AUTH_NTLM_TYPE2MSG:
result = pop3_state_auth_ntlm_type2msg_resp(conn, pop3code, pop3c->state);
result = pop3_state_auth_ntlm_type2msg_resp(conn, pop3code,
pop3c->state);
break;

case POP3_AUTH_FINAL:
Expand Down

0 comments on commit 1fa2af5

Please sign in to comment.