imap: Adjusted SELECT and FETCH state order in imap_statemach_act()

Exchanged the position of these states in the switch statements to
match the state enum, execution and function order.
This commit is contained in:
Jiri Hruska
2013-02-25 17:59:05 +01:00
committed by Steve Holme
parent 015ceb4706
commit 6f02209cc8

View File

@@ -1348,14 +1348,14 @@ static CURLcode imap_statemach_act(struct connectdata *conn)
result = imap_state_login_resp(conn, imapcode, imapc->state); result = imap_state_login_resp(conn, imapcode, imapc->state);
break; break;
case IMAP_FETCH:
result = imap_state_fetch_resp(conn, imapcode, imapc->state);
break;
case IMAP_SELECT: case IMAP_SELECT:
result = imap_state_select_resp(conn, imapcode, imapc->state); result = imap_state_select_resp(conn, imapcode, imapc->state);
break; break;
case IMAP_FETCH:
result = imap_state_fetch_resp(conn, imapcode, imapc->state);
break;
case IMAP_LOGOUT: case IMAP_LOGOUT:
/* fallthrough, just stop! */ /* fallthrough, just stop! */
default: default: