mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix visual studio build (C89-compatibility)
This commit is contained in:
parent
3a5b3735ed
commit
0b00f17627
|
@ -1154,10 +1154,12 @@ NETSOCKET net_udp_create(NETADDR bindaddr)
|
|||
/* set receive buffer size */
|
||||
setsockopt(socket, SOL_SOCKET, SO_RCVBUF, (char*)&recvsize, sizeof(recvsize));
|
||||
|
||||
/* set DSCP/TOS */
|
||||
int iptos = 0x10 /* IPTOS_LOWDELAY */;
|
||||
//int iptos = 46; /* High Priority */
|
||||
setsockopt(socket, IPPROTO_IP, IP_TOS, (char*)&iptos, sizeof(iptos));
|
||||
{
|
||||
/* set DSCP/TOS */
|
||||
int iptos = 0x10 /* IPTOS_LOWDELAY */;
|
||||
//int iptos = 46; /* High Priority */
|
||||
setsockopt(socket, IPPROTO_IP, IP_TOS, (char*)&iptos, sizeof(iptos));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1181,10 +1183,12 @@ NETSOCKET net_udp_create(NETADDR bindaddr)
|
|||
/* set receive buffer size */
|
||||
setsockopt(socket, SOL_SOCKET, SO_RCVBUF, (char*)&recvsize, sizeof(recvsize));
|
||||
|
||||
/* set DSCP/TOS */
|
||||
int iptos = 0x10 /* IPTOS_LOWDELAY */;
|
||||
//int iptos = 46; /* High Priority */
|
||||
setsockopt(socket, IPPROTO_IP, IP_TOS, (char*)&iptos, sizeof(iptos));
|
||||
{
|
||||
/* set DSCP/TOS */
|
||||
int iptos = 0x10 /* IPTOS_LOWDELAY */;
|
||||
//int iptos = 46; /* High Priority */
|
||||
setsockopt(socket, IPPROTO_IP, IP_TOS, (char*)&iptos, sizeof(iptos));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue