瀏覽代碼

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.
cypherpunks 8 年之前
父節點
當前提交
fd399ec850
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      src/or/connection.c

+ 0 - 5
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,