From c25383ae1329199107943211e543612d288eb1ae Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 15 Feb 2013 11:03:42 +0100 Subject: rename "easy" statemachines: call them block instead ... since they're not used by the easy interface really, I wanted to remove the association. Also, I unified the pingpong statemachine driver into a single function with a 'wait' argument: Curl_pp_statemach. --- lib/pop3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/pop3.c') diff --git a/lib/pop3.c b/lib/pop3.c index ffbb5156f..b94f6f7e4 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -1263,21 +1263,21 @@ static CURLcode pop3_multi_statemach(struct connectdata *conn, bool *done) if((conn->handler->flags & PROTOPT_SSL) && !pop3c->ssldone) result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &pop3c->ssldone); else - result = Curl_pp_multi_statemach(&pop3c->pp); + result = Curl_pp_statemach(&pop3c->pp, FALSE); *done = (pop3c->state == POP3_STOP) ? TRUE : FALSE; return result; } -static CURLcode pop3_easy_statemach(struct connectdata *conn) +static CURLcode pop3_block_statemach(struct connectdata *conn) { struct pop3_conn *pop3c = &conn->proto.pop3c; struct pingpong *pp = &pop3c->pp; CURLcode result = CURLE_OK; while(pop3c->state != POP3_STOP) { - result = Curl_pp_easy_statemach(pp); + result = Curl_pp_statemach(pp, TRUE); if(result) break; } @@ -1506,7 +1506,7 @@ static CURLcode pop3_quit(struct connectdata *conn) state(conn, POP3_QUIT); - result = pop3_easy_statemach(conn); + result = pop3_block_statemach(conn); return result; } -- cgit v1.2.3