diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-02 10:52:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-02 10:52:57 -0400 |
commit | 48a4ef3f6ab88c48ac391989f2ee38de9dd4dbdf (patch) | |
tree | 71ba2cb614fc37625e9bf8474837b3550bf94624 /src/common/compat.c | |
parent | bcc39c466688e41ac8f58e5589e854a916769a14 (diff) | |
download | tor-48a4ef3f6ab88c48ac391989f2ee38de9dd4dbdf.tar.gz tor-48a4ef3f6ab88c48ac391989f2ee38de9dd4dbdf.zip |
Fixed "unused parameter cloexec" warnings on windows
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index d69e3b0931..3768933edf 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) { |