aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-03-09 12:12:20 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-03-09 12:12:20 +0000
commitb4c9b515aa89b3789c9b916af20390d08a8e2431 (patch)
tree029ee0170473e56fe9afe4b9fbbabb43bcd4a5f3
parentb482417ac444fa086ec2a3d177ec064c4f71bf1a (diff)
imap: Moved imap_logout() to be grouped with the other perform functions
-rw-r--r--lib/imap.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 05a50b0ad..b1c92ac7e 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -821,6 +821,25 @@ static CURLcode imap_custom(struct connectdata *conn)
return result;
}
+/***********************************************************************
+ *
+ * imap_logout()
+ *
+ * Performs the logout action prior to sclose() being called.
+ */
+static CURLcode imap_logout(struct connectdata *conn)
+{
+ CURLcode result = CURLE_OK;
+
+ /* Send the LOGOUT command */
+ result = imap_sendf(conn, "LOGOUT");
+
+ if(!result)
+ state(conn, IMAP_LOGOUT);
+
+ return result;
+}
+
/* For the initial server greeting */
static CURLcode imap_state_servergreet_resp(struct connectdata *conn,
int imapcode,
@@ -1938,25 +1957,6 @@ static CURLcode imap_do(struct connectdata *conn, bool *done)
/***********************************************************************
*
- * imap_logout()
- *
- * Performs the logout action prior to sclose() being called.
- */
-static CURLcode imap_logout(struct connectdata *conn)
-{
- CURLcode result = CURLE_OK;
-
- /* Send the LOGOUT command */
- result = imap_sendf(conn, "LOGOUT");
-
- if(!result)
- state(conn, IMAP_LOGOUT);
-
- return result;
-}
-
-/***********************************************************************
- *
* imap_disconnect()
*
* Disconnect from an IMAP server. Cleanup protocol-specific per-connection