[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.2.2] Fix compile warning on windows



commit 9a490bb53b98efa4cec721a80fe5fec94c554c1f
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date:   Thu May 5 02:21:09 2011 +0200

    Fix compile warning on windows
---
 src/or/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/or/main.c b/src/or/main.c
index 462b51e..7bae59c 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1587,6 +1587,7 @@ do_main_loop(void)
   }
 }
 
+#ifndef MS_WINDOWS /* Only called when we're willing to use signals */
 /** Libevent callback: invoked when we get a signal.
  */
 static void
@@ -1598,6 +1599,7 @@ signal_callback(int fd, short events, void *arg)
 
   process_signal(sig);
 }
+#endif
 
 /** Do the work of acting on a signal received in <b>sig</b> */
 void



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits