summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/accept.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/accept.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/accept.c')
-rw-r--r--otherlibs/win32unix/accept.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/otherlibs/win32unix/accept.c b/otherlibs/win32unix/accept.c
index db0362714..89f5d3976 100644
--- a/otherlibs/win32unix/accept.c
+++ b/otherlibs/win32unix/accept.c
@@ -34,10 +34,8 @@ value unix_accept(sock) /* ML */
enter_blocking_section();
snew = accept(sconn, &sock_addr.s_gen, &sock_addr_len);
leave_blocking_section();
- if (snew == INVALID_SOCKET) {
- _dosmaperr(WSAGetLastError());
- uerror("accept", Nothing);
- }
+ if (snew == INVALID_SOCKET)
+ unix_error(WSAGetLastError(), "accept", Nothing);
Begin_roots2 (fd, adr)
fd = win_alloc_handle((HANDLE) snew);
adr = alloc_sockaddr();