summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/socket.c')
-rw-r--r--otherlibs/win32unix/socket.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/otherlibs/win32unix/socket.c b/otherlibs/win32unix/socket.c
index 0ccace588..cdcd34a6d 100644
--- a/otherlibs/win32unix/socket.c
+++ b/otherlibs/win32unix/socket.c
@@ -38,9 +38,6 @@ value unix_socket(domain, type, proto) /* ML */
s = socket(socket_domain_table[Int_val(domain)],
socket_type_table[Int_val(type)],
Int_val(proto));
- if (s == INVALID_SOCKET) {
- _dosmaperr(WSAGetLastError());
- uerror("socket", Nothing);
- }
+ if (s == INVALID_SOCKET) unix_error(WSAGetLastError(), "socket", Nothing);
return win_alloc_handle((HANDLE) s);
}