mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2025-09-21 19:58:26 -04:00
Don't pass 0x1 as a pointer to a syscall. oops.
svn path=/trunk/net/; revision=4593
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user