summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/close_on.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>1997-05-19 15:42:21 +0000
committerDamien Doligez <damien.doligez-inria.fr>1997-05-19 15:42:21 +0000
commit03ec746bf1afc498c91a4bff3a3f80d873594b95 (patch)
tree2d628930d146a469503d32f62181997a75e459a3 /otherlibs/win32unix/close_on.c
parent9f30d68f00c8933445d45416dcc7f67c7f1ca934 (diff)
deTABisation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1563 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/close_on.c')
-rw-r--r--otherlibs/win32unix/close_on.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/otherlibs/win32unix/close_on.c b/otherlibs/win32unix/close_on.c
index 324c16209..179a5ae48 100644
--- a/otherlibs/win32unix/close_on.c
+++ b/otherlibs/win32unix/close_on.c
@@ -63,19 +63,19 @@ static int win_open_osfhandle2(handle, flags, reqd_fd)
if (fd == -1)
return -1;
if (fd == reqd_fd)
- return 0; /* Got it! */
+ return 0; /* Got it! */
/* Make a copy of the handle, since we're going to close "handle" when
we close "fd". */
if (! DuplicateHandle(GetCurrentProcess(), handle,
- GetCurrentProcess(), &new_handle,
- 0L, FALSE, DUPLICATE_SAME_ACCESS)) {
+ GetCurrentProcess(), &new_handle,
+ 0L, FALSE, DUPLICATE_SAME_ACCESS)) {
_dosmaperr(GetLastError());
return -1;
}
/* Keep fd open during the recursive call, thus forcing _open_osfhandle
to return reqd_fd eventually. */
retcode = win_open_osfhandle2(new_handle, flags, reqd_fd);
- close(fd); /* Also closes "handle" */
+ close(fd); /* Also closes "handle" */
return retcode;
}
@@ -86,8 +86,8 @@ static int win_set_noninherit(fd)
oldh = (HANDLE) _get_osfhandle(fd);
if (oldh == (HANDLE) -1) return -1;
if (! DuplicateHandle(GetCurrentProcess(), oldh,
- GetCurrentProcess(), &newh,
- 0L, FALSE, DUPLICATE_SAME_ACCESS)) {
+ GetCurrentProcess(), &newh,
+ 0L, FALSE, DUPLICATE_SAME_ACCESS)) {
_dosmaperr(GetLastError());
return -1;
}