diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-12-27 05:18:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-12-27 05:18:36 +0000 |
commit | 1a2b6c2ae3ac132099d33409d6c51e06cc141bba (patch) | |
tree | 8b8c919eddcad738eb4156de659a6f0a85d01076 /src/or/buffers.c | |
parent | 119b4e1edfbaa05a82e2b0e00cf8756db5e47cb9 (diff) | |
download | tor-1a2b6c2ae3ac132099d33409d6c51e06cc141bba.tar.gz tor-1a2b6c2ae3ac132099d33409d6c51e06cc141bba.zip |
r17407@catbus: nickm | 2007-12-27 00:18:31 -0500
Fix windows compile error
svn:r12995
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 9ee3cfe8dc..a308255a41 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -506,7 +506,7 @@ read_to_chunk(buf_t *buf, chunk_t *chunk, int fd, size_t at_most, tor_assert(CHUNK_REMAINING_CAPACITY(chunk) >= at_most); read_result = tor_socket_recv(fd, CHUNK_WRITE_PTR(chunk), at_most, 0); if (read_result < 0) { - int e = tor_socket_errno(s); + int e = tor_socket_errno(fd); if (!ERRNO_IS_EAGAIN(e)) { /* it's a real error */ #ifdef MS_WINDOWS if (e == WSAENOBUFS) |