aboutsummaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-02-15 11:03:42 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-02-15 11:10:18 +0100
commitc25383ae1329199107943211e543612d288eb1ae (patch)
tree2331b0da5e51f749924dd205702109ebc974e9a6 /lib/pop3.c
parent6106eeba16f45a6a2fccdfac2b9b64dcf12f2a20 (diff)
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.
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c8
1 files changed, 4 insertions, 4 deletions
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;
}