[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Only define set_buffer_lengths_to_zero if bufferevents are enabled
commit b0d3c6a8783a0ad8178d8fe396ad75bb0355f5f7
Author: Murdoch@xxxxxxxxxxxx <Murdoch@xxxxxxxxxxxx>
Date: Wed Nov 30 20:14:46 2011 +0000
Only define set_buffer_lengths_to_zero if bufferevents are enabled
Otherwise, on Windows, gcc will warn about the function being unused
---
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 d3eb721..3cf9856 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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits