summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fork.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-12-03 12:59:56 +0100
committerCorinna Vinschen <corinna@vinschen.de>2015-12-03 13:30:51 +0100
commit81e6c7515da61c8dc8426804f1eeb25981b13d55 (patch)
tree3745d238177aef319e3ed37f372025de8dcd4945 /winsup/cygwin/fork.cc
parent111f32f4ba709be038234fbc7f0254b8f6506564 (diff)
downloadcygnal-81e6c7515da61c8dc8426804f1eeb25981b13d55.tar.gz
cygnal-81e6c7515da61c8dc8426804f1eeb25981b13d55.tar.bz2
cygnal-81e6c7515da61c8dc8426804f1eeb25981b13d55.zip
Cleanup in dcrt0.cc and fork.cc
* dcrt0.cc (child_info_fork::alloc_stack): Fix formatting. * fork.cc (frok::parent): Fix formatting. (child_copy): Change type of res to BOOL. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r--winsup/cygwin/fork.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index 158186781..e7b9ea441 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -308,7 +308,7 @@ frok::parent (volatile char * volatile stack_here)
ch.forker_finished = forker_finished;
ch.from_main = &_my_tls == _main_tls;
- ch.stackbase = NtCurrentTeb()->Tib.StackBase;
+ ch.stackbase = NtCurrentTeb ()->Tib.StackBase;
ch.stackaddr = NtCurrentTeb ()->DeallocationStack;
if (!ch.stackaddr)
{
@@ -316,7 +316,7 @@ frok::parent (volatile char * volatile stack_here)
stack. If so, the entire stack is committed anyway and StackLimit
points to the allocation address of the stack. Mark in guardsize that
we must not set up guard pages. */
- ch.stackaddr = ch.stacklimit = NtCurrentTeb()->Tib.StackLimit;
+ ch.stackaddr = ch.stacklimit = NtCurrentTeb ()->Tib.StackLimit;
ch.guardsize = (size_t) -1;
}
else
@@ -683,7 +683,7 @@ child_copy (HANDLE hp, bool write, ...)
SIZE_T done = 0;
if (here + todo > high)
todo = high - here;
- int res;
+ BOOL res;
if (write)
res = WriteProcessMemory (hp, here, here, todo, &done);
else