diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-01-25 12:23:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-01-25 12:23:12 +0000 |
commit | e49a82b06ca9ba4de72e991f4759bed50d57fb38 (patch) | |
tree | 1f827087a30580db8519728ce13e9615bfa42f00 /lib | |
parent | 45fdb4818972a94edb9e89ce8d2043a8f9a86abf (diff) |
converted to use Curl_read() and Curl_write()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index f9fe1aeba..a2d443376 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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"); |