diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-25 10:04:08 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-06-05 20:37:56 +0200 |
commit | 04ac54e1965041684fc1b6532eba90f58601264e (patch) | |
tree | 076f49647e1039b0dea59051c2705296eae60fdc | |
parent | 69248b58f649e35b09a126c12781353e3471f5c6 (diff) | |
download | curl-04ac54e1965041684fc1b6532eba90f58601264e.tar.gz |
sws: remove unused variables
Unused since commit 2f44e94.
Closes https://github.com/curl/curl/pull/3975
-rw-r--r-- | tests/server/sws.c | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c index e5806875c..963357799 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -952,28 +952,19 @@ static int get_request(curl_socket_t sock, struct httprequest *req) ssize_t got = 0; int overflow = 0; - char *pipereq = NULL; - size_t pipereq_length = 0; - if(req->offset >= REQBUFSIZ-1) { /* buffer is already full; do nothing */ overflow = 1; } else { - if(pipereq_length && pipereq) { - memmove(reqbuf, pipereq, pipereq_length); - got = curlx_uztosz(pipereq_length); - pipereq_length = 0; - } - else { - if(req->skip) - /* we are instructed to not read the entire thing, so we make sure to - only read what we're supposed to and NOT read the enire thing the - client wants to send! */ - got = sread(sock, reqbuf + req->offset, req->cl); - else - got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); - } + if(req->skip) + /* we are instructed to not read the entire thing, so we make sure to + only read what we're supposed to and NOT read the enire thing the + client wants to send! */ + got = sread(sock, reqbuf + req->offset, req->cl); + else + got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); + if(got_exit_signal) return -1; if(got == 0) { |