From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 17 May 2004 08:07:07 +0000 (+0000)
Subject: new Curl_done() proto
X-Git-Tag: curl-7_12_0~72
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d70a335dcefbe2930367d45c39a00f1babc1e30b;p=curl

new Curl_done() proto
---

diff --git a/lib/multi.c b/lib/multi.c
index 673a0f6cc..8d1547d17 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -331,7 +331,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
         char *gotourl;
         Curl_posttransfer(easy->easy_handle);
 
-        easy->result = Curl_done(easy->easy_conn, CURLE_OK);
+        easy->result = Curl_done(&easy->easy_conn, CURLE_OK);
         if(CURLE_OK == easy->result) {
           gotourl = strdup(easy->easy_handle->change.url);
           if(gotourl) {
@@ -500,7 +500,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
             easy->easy_conn->sock[SECONDARYSOCKET]=-1;
           }
           Curl_posttransfer(easy->easy_handle);
-          Curl_done(easy->easy_conn, easy->result);
+          Curl_done(&easy->easy_conn, easy->result);
         }
 
         /* after the transfer is done, go DONE */
@@ -513,7 +513,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
           if(easy->easy_conn->newurl) {
             char *newurl = easy->easy_conn->newurl;
             easy->easy_conn->newurl = NULL;
-            easy->result = Curl_done(easy->easy_conn, CURLE_OK);
+            easy->result = Curl_done(&easy->easy_conn, CURLE_OK);
             if(easy->result == CURLE_OK)
               easy->result = Curl_follow(easy->easy_handle, newurl);
             if(CURLE_OK == easy->result) {
@@ -529,7 +529,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
         break;
       case CURLM_STATE_DONE:
         /* post-transfer command */
-        easy->result = Curl_done(easy->easy_conn, CURLE_OK);
+        easy->result = Curl_done(&easy->easy_conn, CURLE_OK);
 
         /* after we have DONE what we're supposed to do, go COMPLETED, and
            it doesn't matter what the Curl_done() returned! */