diff options
author | Murdoch@cl.cam.ac.uk <Murdoch@cl.cam.ac.uk> | 2011-11-30 20:14:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-30 18:06:55 -0500 |
commit | b0d3c6a8783a0ad8178d8fe396ad75bb0355f5f7 (patch) | |
tree | 8c7864e2b38650ebbc64b4b08b4567ba54413d6c /src/or/main.c | |
parent | 0530e80e5de325ba9d36a13c924950ccd49dbf72 (diff) | |
download | tor-b0d3c6a8783a0ad8178d8fe396ad75bb0355f5f7.tar.gz tor-b0d3c6a8783a0ad8178d8fe396ad75bb0355f5f7.zip |
Only define set_buffer_lengths_to_zero if bufferevents are enabled
Otherwise, on Windows, gcc will warn about the function being unused
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index d3eb721d8a..3cf98565c8 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -196,7 +196,7 @@ free_old_inbuf(connection_t *conn) } #endif -#ifdef MS_WINDOWS +#if defined(MS_WINDOWS) && defined(USE_BUFFEREVENTS) /** Remove the kernel-space send and receive buffers for <b>s</b>. For use * with IOCP only. */ static int |