]> granicus.if.org Git - curl/commitdiff
converted to use Curl_read() and Curl_write()
authorDaniel Stenberg <daniel@haxx.se>
Thu, 25 Jan 2001 12:23:12 +0000 (12:23 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Jan 2001 12:23:12 +0000 (12:23 +0000)
lib/transfer.c

index f9fe1aebaf50de4bd18c5108de79198eaae9935a..a2d443376e6a9c589fab92539f63e983c58aa78c 100644 (file)
@@ -222,7 +222,7 @@ _Transfer(struct connectdata *c_conn)
       default:
         if((keepon & KEEP_READ) && FD_ISSET(conn->sockfd, &readfd)) {
           /* read! */
-          urg = curl_read(conn, buf, BUFSIZE -1, &nread);
+          urg = Curl_read(conn, conn->sockfd, buf, BUFSIZE -1, &nread);
 
           /* NULL terminate, allowing string ops to be used */
           if (0 < (signed int) nread)
@@ -541,7 +541,8 @@ _Transfer(struct connectdata *c_conn)
           }
 
           /* write to socket */
-          urg = curl_write(conn, buf, nread, &bytes_written);
+          urg = Curl_write(conn, conn->writesockfd, buf, nread,
+                           &bytes_written);
 
           if(nread != bytes_written) {
             failf(data, "Failed uploading data");