]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compile warnings on windows
authorSebastian Hahn <sebastian@torproject.org>
Tue, 15 Nov 2011 12:29:32 +0000 (13:29 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 15 Nov 2011 12:34:04 +0000 (13:34 +0100)
changes/bug4469 [new file with mode: 0644]
src/common/util.c
src/or/connection.c

diff --git a/changes/bug4469 b/changes/bug4469
new file mode 100644 (file)
index 0000000..e9e390c
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
+      on 0.2.3.4-alpha and 0.2.3.6-alpha.
+
index 79e09e4f59db02a5205d811580826135ec77fc05..c44a4aa3b1080828eb696338db94ef49a836a20f 100644 (file)
@@ -3228,6 +3228,8 @@ tor_spawn_background(const char *const filename, const char **argv,
   SECURITY_ATTRIBUTES saAttr;
   char *joined_argv;
 
+  (void)envp; // Unused on Windows
+
   /* process_handle must not be NULL */
   tor_assert(process_handle != NULL);
 
index bf39a5cb9c9042a8a36de58ea3817e8cae41cd56..a52bf4807808ea4cfb45225b758e9dad28834b28 100644 (file)
@@ -996,6 +996,8 @@ connection_create_listener(const struct sockaddr *listensockaddr,
       tor_close_socket(s);
       goto err;
     }
+#else
+    (void)options;
 #endif /* HAVE_SYS_UN_H */
   } else {
       log_err(LD_BUG,"Got unexpected address family %d.",