]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix some win32 compilation warnings
authorNick Mathewson <nickm@torproject.org>
Mon, 28 Sep 2009 23:52:56 +0000 (19:52 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 28 Sep 2009 23:56:36 +0000 (19:56 -0400)
src/or/config.c
src/or/ntmain.c

index 474b887bac31a36a9cf3858155607911c9c69e5d..b565d2900d7d63ae9862a7490fddcb13b7a49a76 100644 (file)
@@ -2696,6 +2696,8 @@ is_listening_on_low_port(uint16_t port_option,
                          const config_line_t *listen_options)
 {
 #ifdef MS_WINDOWS
+  (void) port_option;
+  (void) listen_options;
   return 0; /* No port is too low for windows. */
 #else
   const config_line_t *l;
index 4f96fbe5d79e7347a4e3e50152714cd5446d41b4..bdaee16157d6c4bc76353e5e8bd904d7af884145 100644 (file)
@@ -6,6 +6,13 @@
 #define MAIN_PRIVATE
 #include "or.h"
 
+
+#ifdef HAVE_EVENT2_EVENT_H
+#include <event2/event.h>
+#else
+#include <event.h>
+#endif
+
 #include <tchar.h>
 #define GENSRV_SERVICENAME  TEXT("tor")
 #define GENSRV_DISPLAYNAME  TEXT("Tor Win32 Service")
@@ -218,7 +225,7 @@ nt_service_control(DWORD request)
           log_notice(LD_GENERAL,
                      "Got stop/shutdown request; shutting down cleanly.");
           service_status.dwCurrentState = SERVICE_STOP_PENDING;
-          event_loopexit(&exit_now);
+          event_base_loopexit(tor_libevent_get_base(), &exit_now);
           return;
   }
   service_fns.SetServiceStatus_fn(hStatus, &service_status);