summaryrefslogtreecommitdiff
path: root/sysdeps/mach/pt-thread-start.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-start.c
parentfd8d37ff6b01db3985ac67a6c43bb81f5f7b2aca (diff)
Fix coding style
Diffstat (limited to 'sysdeps/mach/pt-thread-start.c')
-rw-r--r--sysdeps/mach/pt-thread-start.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/sysdeps/mach/pt-thread-start.c b/sysdeps/mach/pt-thread-start.c
index 07fbc30..571c1f2 100644
--- a/sysdeps/mach/pt-thread-start.c
+++ b/sysdeps/mach/pt-thread-start.c
@@ -29,15 +29,18 @@ __pthread_thread_start (struct __pthread *thread)
static int do_start;
error_t err;
- if (! do_start)
+ if (!do_start)
{
/* The main thread is already running: do nothing. */
assert (__pthread_total == 1);
- assert (({ mach_port_t ktid = __mach_thread_self ();
- int ok = thread->kernel_thread == ktid;
- __mach_port_deallocate (__mach_task_self (),
- thread->kernel_thread);
- ok; }));
+ assert ((
+ {
+ mach_port_t ktid = __mach_thread_self ();
+ int ok = thread->kernel_thread == ktid;
+ __mach_port_deallocate (__mach_task_self (),
+ thread->kernel_thread);
+ ok;
+ }));
do_start = 1;
}
else