summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/connect.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2006-10-18 08:26:54 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2006-10-18 08:26:54 +0000
commit4af5727d181e7a77b358751202246382d8aefba6 (patch)
tree799fb5078428bb524da81f9a7f8169bddd8856fd /otherlibs/win32unix/connect.c
parent35d863e204eb61c4d7c1b141e6c6b9a4172dceb0 (diff)
PR#4097: suite
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7697 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/connect.c')
-rw-r--r--otherlibs/win32unix/connect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/win32unix/connect.c b/otherlibs/win32unix/connect.c
index da7d09c71..198d02e2d 100644
--- a/otherlibs/win32unix/connect.c
+++ b/otherlibs/win32unix/connect.c
@@ -24,15 +24,15 @@ CAMLprim value unix_connect(socket, address)
SOCKET s = Socket_val(socket);
union sock_addr_union addr;
socklen_param_type addr_len;
- DWORD errcode = 0;
+ DWORD err = 0;
get_sockaddr(address, &addr, &addr_len);
enter_blocking_section();
if (connect(s, &addr.s_gen, addr_len) == -1)
- errcode = WSAGetLastError();
+ err = WSAGetLastError();
leave_blocking_section();
- if (errcode) {
- win32_maperr(errcode);
+ if (err) {
+ win32_maperr(err);
uerror("connect", Nothing);
}
return Val_unit;