mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
pass an int pointer when it expects an int pointer...
This commit is contained in:
parent
2a701a1aac
commit
dca6386234
@ -979,10 +979,12 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||||||
Curl_debug(data, CURLINFO_DATA_IN, data->state.headerbuff,
|
Curl_debug(data, CURLINFO_DATA_IN, data->state.headerbuff,
|
||||||
k->hbuflen, conn->host.dispname);
|
k->hbuflen, conn->host.dispname);
|
||||||
if(k->badheader == HEADER_PARTHEADER)
|
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
|
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
|
#ifndef CURL_DISABLE_HTTP
|
||||||
@ -1124,6 +1126,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||||||
if(!k->upload_done) {
|
if(!k->upload_done) {
|
||||||
/* HTTP pollution, this should be written nicer to become more
|
/* HTTP pollution, this should be written nicer to become more
|
||||||
protocol agnostic. */
|
protocol agnostic. */
|
||||||
|
int fillcount;
|
||||||
|
|
||||||
if(k->wait100_after_headers &&
|
if(k->wait100_after_headers &&
|
||||||
(conn->proto.http->sending == HTTPSEND_BODY)) {
|
(conn->proto.http->sending == HTTPSEND_BODY)) {
|
||||||
@ -1140,9 +1143,11 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = Curl_fillreadbuffer(conn, BUFSIZE, &nread);
|
result = Curl_fillreadbuffer(conn, BUFSIZE, &fillcount);
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
nread = (ssize_t)fillcount;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
nread = 0; /* we're done uploading/reading */
|
nread = 0; /* we're done uploading/reading */
|
||||||
|
Loading…
Reference in New Issue
Block a user