diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-08-30 18:26:19 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-08-30 18:26:19 +0000 |
commit | 5d4c981e130adac09fc13bc04494f5f56294cc79 (patch) | |
tree | 0bb9378a804e7b0c249da8f677842c15809a4ead /tests | |
parent | da4a7767583a7805aabedb2adea4f47cfbc724e7 (diff) |
Fixed a few compiler warnings. Try to do a slightly better job of
cleaning up after an OOM condition in curl_multi_add_handle
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server/sockfilt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index bd54f8812..b4e1c07f0 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -320,8 +320,8 @@ static int juggle(curl_socket_t *sockfdp, nread_stdin = 0; do { /* get data in the buffer at the correct position */ - ssize_t rc = read(fileno(stdin), &buffer[nread_stdin], - buffer_len - nread_stdin); + rc = read(fileno(stdin), &buffer[nread_stdin], + buffer_len - nread_stdin); logmsg("read %d bytes", rc); if(rc <= 0) return FALSE; |