aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-22 06:50:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-22 06:50:41 +0000
commitdca63862340e29511f056c9430f18b5d7c138003 (patch)
tree09bff7114141c43c93850d149863547a2df2b593 /lib
parent2a701a1aac498b04f917b671291431b9b5e9cea6 (diff)
pass an int pointer when it expects an int pointer...
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 1da2cc9c1..c4e732191 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -979,10 +979,12 @@ CURLcode Curl_readwrite(struct connectdata *conn,
Curl_debug(data, CURLINFO_DATA_IN, data->state.headerbuff,
k->hbuflen, conn->host.dispname);
if(k->badheader == HEADER_PARTHEADER)
- Curl_debug(data, CURLINFO_DATA_IN, k->str, nread, conn->host.dispname);
+ Curl_debug(data, CURLINFO_DATA_IN, k->str, nread,
+ conn->host.dispname);
}
else
- Curl_debug(data, CURLINFO_DATA_IN, k->str, nread, conn->host.dispname);
+ Curl_debug(data, CURLINFO_DATA_IN, k->str, nread,
+ conn->host.dispname);
}
#ifndef CURL_DISABLE_HTTP
@@ -1124,6 +1126,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
if(!k->upload_done) {
/* HTTP pollution, this should be written nicer to become more
protocol agnostic. */
+ int fillcount;
if(k->wait100_after_headers &&
(conn->proto.http->sending == HTTPSEND_BODY)) {
@@ -1140,9 +1143,11 @@ CURLcode Curl_readwrite(struct connectdata *conn,
break;
}
- result = Curl_fillreadbuffer(conn, BUFSIZE, &nread);
+ result = Curl_fillreadbuffer(conn, BUFSIZE, &fillcount);
if(result)
return result;
+
+ nread = (ssize_t)fillcount;
}
else
nread = 0; /* we're done uploading/reading */