diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-04 13:45:56 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-04 13:45:56 +0000 |
commit | 0efc0065fc1c1f1709ffd9abeee1751409c2170a (patch) | |
tree | 7e9e59e604771b609405ed77fff0c938a6205812 /otherlibs/win32unix/sockopt.c | |
parent | 1e664b94467a65841e63d2dea50cd1f64e8a3258 (diff) |
Debug, tests
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1701 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/sockopt.c')
-rw-r--r-- | otherlibs/win32unix/sockopt.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/otherlibs/win32unix/sockopt.c b/otherlibs/win32unix/sockopt.c index 8ce59d8b2..723c68b00 100644 --- a/otherlibs/win32unix/sockopt.c +++ b/otherlibs/win32unix/sockopt.c @@ -26,10 +26,8 @@ value unix_getsockopt(socket, option) /* ML */ int optval, optsize; optsize = sizeof(optval); if (getsockopt((SOCKET) Handle_val(socket), SOL_SOCKET, - sockopt[Int_val(option)], (char *) &optval, &optsize) == -1) { - _dosmaperr(WSAGetLastError()); - uerror("getsockopt", Nothing); - } + sockopt[Int_val(option)], (char *) &optval, &optsize) == -1) + unix_error(WSAGetLastError(), "getsockopt", Nothing); return Val_int(optval); } @@ -39,9 +37,7 @@ value unix_setsockopt(socket, option, status) /* ML */ int optval = Int_val(status); if (setsockopt((SOCKET) Handle_val(socket), SOL_SOCKET, sockopt[Int_val(option)], - (char *) &optval, sizeof(optval)) == -1) { - _dosmaperr(WSAGetLastError()); - uerror("setsockopt", Nothing); - } + (char *) &optval, sizeof(optval)) == -1) + unix_error(WSAGetLastError(), "setsockopt", Nothing); return Val_unit; } |