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

[tor-commits] [tor/master] Remove Windows specific data type usage



commit fd399ec85095d86d78cf69674df9ec2143dffdcb
Author: cypherpunks <cypherpunks@xxxxxxxxxxxxxx>
Date:   Wed Dec 16 23:09:08 2015 +0100

    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.
---
 src/or/connection.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index be59a2c..f2c8d2a 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,



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