1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

Don't pass 0x1 as a pointer to a syscall. oops.

svn path=/trunk/net/; revision=4593
This commit is contained in:
Michael Smith 2003-04-08 12:09:57 +00:00
parent d8a5b64b1b
commit 71ba9e88d6

View File

@ -208,7 +208,7 @@ int sock_set_nodelay(sock_t sock)
{
int nodelay = 1;
return setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)nodelay,
return setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)&nodelay,
sizeof(int));
}