mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-10-27 05:10:16 -04:00
Don't pass 0x1 as a pointer to a syscall. oops.
svn path=/trunk/net/; revision=4593
This commit is contained in:
parent
d8a5b64b1b
commit
71ba9e88d6
@ -208,7 +208,7 @@ int sock_set_nodelay(sock_t sock)
|
|||||||
{
|
{
|
||||||
int nodelay = 1;
|
int nodelay = 1;
|
||||||
|
|
||||||
return setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)nodelay,
|
return setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)&nodelay,
|
||||||
sizeof(int));
|
sizeof(int));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user