]> granicus.if.org Git - curl/commitdiff
imap: Moved imap_logout() to be grouped with the other perform functions
authorSteve Holme <steve_holme@hotmail.com>
Sat, 9 Mar 2013 12:12:20 +0000 (12:12 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 9 Mar 2013 12:12:20 +0000 (12:12 +0000)
lib/imap.c

index 05a50b0ad21c5b58751226d1283b8ea03171ab11..b1c92ac7e66180e4a7efb7fb5d66be8da5c592ee 100644 (file)
@@ -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,
@@ -1936,25 +1955,6 @@ static CURLcode imap_do(struct connectdata *conn, bool *done)
   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;
-}
-
 /***********************************************************************
  *
  * imap_disconnect()