Commit 2cb0db8e authored by Michael Smith's avatar Michael Smith

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

svn path=/trunk/net/; revision=4593
parent 7094a0e6
......@@ -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));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment