summaryrefslogtreecommitdiff
path: root/sysdeps/mach/pt-thread-terminate.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 01:22:33 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 01:22:33 +0200
commit08ed02b9705b7bce1b8d79da6455d59a31295212 (patch)
treeddfe8ff69ff49e1baa0052885dad5a2c6404fdcf /sysdeps/mach/pt-thread-terminate.c
parentfd8d37ff6b01db3985ac67a6c43bb81f5f7b2aca (diff)
Fix coding style
Diffstat (limited to 'sysdeps/mach/pt-thread-terminate.c')
-rw-r--r--sysdeps/mach/pt-thread-terminate.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sysdeps/mach/pt-thread-terminate.c b/sysdeps/mach/pt-thread-terminate.c
index b9e094e..418fb40 100644
--- a/sysdeps/mach/pt-thread-terminate.c
+++ b/sysdeps/mach/pt-thread-terminate.c
@@ -41,9 +41,8 @@ __pthread_thread_terminate (struct __pthread *thread)
if (thread->stack)
{
stackaddr = thread->stackaddr;
- stacksize = ((thread->guardsize + __vm_page_size-1)
- / __vm_page_size) * __vm_page_size
- + thread->stacksize;
+ stacksize = ((thread->guardsize + __vm_page_size - 1)
+ / __vm_page_size) * __vm_page_size + thread->stacksize;
}
else
{
@@ -60,8 +59,7 @@ __pthread_thread_terminate (struct __pthread *thread)
simple routine designed not to require a reply port. */
self_ktid = __mach_thread_self ();
reply_port = (self_ktid == kernel_thread)
- ? __mig_get_reply_port ()
- : MACH_PORT_NULL;
+ ? __mig_get_reply_port () : MACH_PORT_NULL;
__mach_port_deallocate (__mach_task_self (), self_ktid);
/* Finally done with the thread structure. */