1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 20:45:03 -05:00

sws: remove unused variables

Unused since commit 2f44e94.

Closes https://github.com/curl/curl/pull/3975
This commit is contained in:
Marcel Raad 2019-05-25 10:04:08 +02:00
parent 69248b58f6
commit 04ac54e196
No known key found for this signature in database
GPG Key ID: FE4D8BC5EE1701DD

View File

@ -952,19 +952,10 @@ static int get_request(curl_socket_t sock, struct httprequest *req)
ssize_t got = 0; ssize_t got = 0;
int overflow = 0; int overflow = 0;
char *pipereq = NULL;
size_t pipereq_length = 0;
if(req->offset >= REQBUFSIZ-1) { if(req->offset >= REQBUFSIZ-1) {
/* buffer is already full; do nothing */ /* buffer is already full; do nothing */
overflow = 1; overflow = 1;
} }
else {
if(pipereq_length && pipereq) {
memmove(reqbuf, pipereq, pipereq_length);
got = curlx_uztosz(pipereq_length);
pipereq_length = 0;
}
else { else {
if(req->skip) if(req->skip)
/* we are instructed to not read the entire thing, so we make sure to /* we are instructed to not read the entire thing, so we make sure to
@ -973,7 +964,7 @@ static int get_request(curl_socket_t sock, struct httprequest *req)
got = sread(sock, reqbuf + req->offset, req->cl); got = sread(sock, reqbuf + req->offset, req->cl);
else else
got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset);
}
if(got_exit_signal) if(got_exit_signal)
return -1; return -1;
if(got == 0) { if(got == 0) {