diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-04-14 09:37:19 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-04-14 10:06:07 +0100 |
commit | e4eaa92728288b226eecead95393e45ecd8c1d9e (patch) | |
tree | f8456d896b0b595a3d4669ab3813a3e714347dc5 | |
parent | 577f8e5ac6dc3faa932c0b4789b90d0577fc6276 (diff) |
pop3: Moved pop3_quit() to be with the other perform functions
-rw-r--r-- | lib/pop3.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/pop3.c b/lib/pop3.c index 31ce5ab72..bd67647aa 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -613,6 +613,25 @@ static CURLcode pop3_command(struct connectdata *conn) return result; } +/*********************************************************************** + * + * pop3_quit() + * + * Performs the quit action prior to sclose() be called. + */ +static CURLcode pop3_quit(struct connectdata *conn) +{ + CURLcode result = CURLE_OK; + + /* Send the QUIT command */ + result = Curl_pp_sendf(&conn->proto.pop3c.pp, "QUIT"); + + if(!result) + state(conn, POP3_QUIT); + + return result; +} + /* For the initial server greeting */ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn, int pop3code, @@ -1480,25 +1499,6 @@ static CURLcode pop3_do(struct connectdata *conn, bool *done) /*********************************************************************** * - * pop3_quit() - * - * Performs the quit action prior to sclose() be called. - */ -static CURLcode pop3_quit(struct connectdata *conn) -{ - CURLcode result = CURLE_OK; - - /* Send the QUIT command */ - result = Curl_pp_sendf(&conn->proto.pop3c.pp, "QUIT"); - - if(!result) - state(conn, POP3_QUIT); - - return result; -} - -/*********************************************************************** - * * pop3_disconnect() * * Disconnect from an POP3 server. Cleanup protocol-specific per-connection |