mirror of
https://github.com/curl/curl.git
synced 2026-06-18 15:56:12 +03:00
pop3: Moved pop3_quit() to be with the other perform functions
This commit is contained in:
parent
577f8e5ac6
commit
e4eaa92728
1 changed files with 19 additions and 19 deletions
38
lib/pop3.c
38
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue