summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-12-16 23:09:08 +0100
committerNick Mathewson <nickm@torproject.org>2015-12-17 08:34:27 -0500
commitfd399ec85095d86d78cf69674df9ec2143dffdcb (patch)
tree9ca55e6c916bebc6471b1db091eebf26ab9630ac /src/or/connection.c
parent2d2312d98986d65af47d35a89e176b5cf9953533 (diff)
downloadtor-fd399ec85095d86d78cf69674df9ec2143dffdcb.tar.gz
tor-fd399ec85095d86d78cf69674df9ec2143dffdcb.zip
Remove Windows specific data type usage
The Tor code base already contains usage of setsockopt(2) with an int as their option value without problems.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index be59a2c048..f2c8d2a8d3 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1154,12 +1154,7 @@ connection_listener_new(const struct sockaddr *listensockaddr,
#ifdef IPV6_V6ONLY
if (listensockaddr->sa_family == AF_INET6) {
-#ifdef _WIN32
- /* In Redmond, this kind of thing passes for standards-conformance. */
- DWORD one = 1;
-#else
int one = 1;
-#endif
/* We need to set IPV6_V6ONLY so that this socket can't get used for
* IPv4 connections. */
if (setsockopt(s,IPPROTO_IPV6, IPV6_V6ONLY,