summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/socket.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1997-09-04 13:45:56 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1997-09-04 13:45:56 +0000
commit0efc0065fc1c1f1709ffd9abeee1751409c2170a (patch)
tree7e9e59e604771b609405ed77fff0c938a6205812 /otherlibs/win32unix/socket.c
parent1e664b94467a65841e63d2dea50cd1f64e8a3258 (diff)
Debug, tests
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1701 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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);
}