Updated shutdown() constants.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7207 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Waldemar Kornewald
2004-04-15 16:07:42 +00:00
parent 0a628cf2fc
commit 310eb63195
+3 -2
View File
@@ -358,10 +358,11 @@ int socket_shutdown(struct socket *so, int how)
{
struct protosw *pr = so->so_proto;
/* adjust value so the first two bits define RECV and SEND */
how++;
if (how & SHUT_RD)
if (how & SHUTDOWN_RECV)
sorflush(so);
if (how & SHUT_WR)
if (how & SHUTDOWN_SEND)
return pr->pr_userreq(so, PRU_SHUTDOWN, NULL, NULL, NULL);
return 0;
}