mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 23:21:38 +01:00
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.
This commit is contained in:
parent
2d2312d989
commit
fd399ec850
1 changed files with 0 additions and 5 deletions
|
@ -1154,12 +1154,7 @@ connection_listener_new(const struct sockaddr *listensockaddr,
|
||||||
|
|
||||||
#ifdef IPV6_V6ONLY
|
#ifdef IPV6_V6ONLY
|
||||||
if (listensockaddr->sa_family == AF_INET6) {
|
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;
|
int one = 1;
|
||||||
#endif
|
|
||||||
/* We need to set IPV6_V6ONLY so that this socket can't get used for
|
/* We need to set IPV6_V6ONLY so that this socket can't get used for
|
||||||
* IPv4 connections. */
|
* IPv4 connections. */
|
||||||
if (setsockopt(s,IPPROTO_IPV6, IPV6_V6ONLY,
|
if (setsockopt(s,IPPROTO_IPV6, IPV6_V6ONLY,
|
||||||
|
|
Loading…
Add table
Reference in a new issue