From: Steve Holme Date: Sun, 14 Apr 2013 08:37:19 +0000 (+0100) Subject: pop3: Moved pop3_quit() to be with the other perform functions X-Git-Tag: curl-7_31_0~169 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4eaa92728288b226eecead95393e45ecd8c1d9e;p=thirdparty%2Fcurl.git pop3: Moved pop3_quit() to be with the other perform functions --- diff --git a/lib/pop3.c b/lib/pop3.c index 31ce5ab72e..bd67647aae 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, @@ -1478,25 +1497,6 @@ static CURLcode pop3_do(struct connectdata *conn, bool *done) 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; -} - /*********************************************************************** * * pop3_disconnect()