summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/select.c')
-rw-r--r--otherlibs/win32unix/select.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/win32unix/select.c b/otherlibs/win32unix/select.c
index a7b68217e..50a7da30b 100644
--- a/otherlibs/win32unix/select.c
+++ b/otherlibs/win32unix/select.c
@@ -54,7 +54,7 @@ CAMLprim value unix_select(value readfds, value writefds, value exceptfds, value
int retcode;
value res;
value read_list = Val_unit, write_list = Val_unit, except_list = Val_unit;
- DWORD errcode = 0;
+ DWORD err = 0;
Begin_roots3 (readfds, writefds, exceptfds)
Begin_roots3 (read_list, write_list, except_list)
@@ -81,10 +81,10 @@ CAMLprim value unix_select(value readfds, value writefds, value exceptfds, value
}
enter_blocking_section();
if (select(FD_SETSIZE, &read, &write, &except, tvp) == -1)
- errcode = WSAGetLastError();
+ err = WSAGetLastError();
leave_blocking_section();
- if (errcode) {
- win32_maperr(errcode);
+ if (err) {
+ win32_maperr(err);
uerror("select", Nothing);
}
read_list = fdset_to_fdlist(readfds, &read);