diff options
Diffstat (limited to 'otherlibs/win32unix/accept.c')
-rw-r--r-- | otherlibs/win32unix/accept.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/otherlibs/win32unix/accept.c b/otherlibs/win32unix/accept.c index 0e44f5800..05fd731e5 100644 --- a/otherlibs/win32unix/accept.c +++ b/otherlibs/win32unix/accept.c @@ -29,7 +29,7 @@ CAMLprim value unix_accept(sock) int oldvalue, oldvaluelen, newvalue, retcode; union sock_addr_union addr; socklen_param_type addr_len; - DWORD errcode = 0; + DWORD err = 0; oldvaluelen = sizeof(oldvalue); retcode = getsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE, @@ -43,7 +43,7 @@ CAMLprim value unix_accept(sock) addr_len = sizeof(sock_addr); enter_blocking_section(); snew = accept(sconn, &addr.s_gen, &addr_len); - if (snew == INVALID_SOCKET) errcode = WSAGetLastError (); + if (snew == INVALID_SOCKET) err = WSAGetLastError (); leave_blocking_section(); if (retcode == 0) { /* Restore initial mode */ @@ -51,7 +51,7 @@ CAMLprim value unix_accept(sock) (char *) &oldvalue, oldvaluelen); } if (snew == INVALID_SOCKET) { - win32_maperr(errcode); + win32_maperr(err); uerror("accept", Nothing); } Begin_roots2 (fd, adr) |