Strongly typed languages ftw.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28338 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-10-26 16:29:39 +00:00
parent 801e9bd9f1
commit fad11a1c88
@@ -732,7 +732,7 @@ TCPEndpoint::SendData(net_buffer *buffer)
return EDESTADDRREQ; return EDESTADDRREQ;
if (!is_writable(fState)) { if (!is_writable(fState)) {
// we only send signals when called from userland // we only send signals when called from userland
if (gStackModule->is_syscall) if (gStackModule->is_syscall())
send_signal(find_thread(NULL), SIGPIPE); send_signal(find_thread(NULL), SIGPIPE);
return EPIPE; return EPIPE;
} }
@@ -758,7 +758,7 @@ TCPEndpoint::SendData(net_buffer *buffer)
if (!is_writable(fState)) { if (!is_writable(fState)) {
// we only send signals when called from userland // we only send signals when called from userland
if (gStackModule->is_syscall) if (gStackModule->is_syscall())
send_signal(find_thread(NULL), SIGPIPE); send_signal(find_thread(NULL), SIGPIPE);
return EPIPE; return EPIPE;
} }