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

[tor-commits] [tor/master] Fixed "unused parameter cloexec" warnings on windows



commit 48a4ef3f6ab88c48ac391989f2ee38de9dd4dbdf
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Aug 2 10:52:57 2013 -0400

    Fixed "unused parameter cloexec" warnings on windows
---
 src/common/compat.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/common/compat.c b/src/common/compat.c
index d69e3b0..3768933 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -1092,6 +1092,8 @@ tor_open_socket_with_extensions(int domain, int type, int protocol,
       return TOR_INVALID_SOCKET;
     }
   }
+#else
+  (void)cloexec;
 #endif
 
   if (nonblock) {
@@ -1162,6 +1164,8 @@ tor_accept_socket_with_extensions(tor_socket_t sockfd, struct sockaddr *addr,
       return TOR_INVALID_SOCKET;
     }
   }
+#else
+  (void)cloexec;
 #endif
 
   if (nonblock) {

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