summaryrefslogtreecommitdiff
path: root/sysdeps/mach/pt-timedblock.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-timedblock.c
parentfd8d37ff6b01db3985ac67a6c43bb81f5f7b2aca (diff)
Fix coding style
Diffstat (limited to 'sysdeps/mach/pt-timedblock.c')
-rw-r--r--sysdeps/mach/pt-timedblock.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sysdeps/mach/pt-timedblock.c b/sysdeps/mach/pt-timedblock.c
index ad0ae0b..4255f77 100644
--- a/sysdeps/mach/pt-timedblock.c
+++ b/sysdeps/mach/pt-timedblock.c
@@ -29,8 +29,7 @@
/* Block THREAD. */
error_t
__pthread_timedblock (struct __pthread *thread,
- const struct timespec *abstime,
- clockid_t clock_id)
+ const struct timespec *abstime, clockid_t clock_id)
{
error_t err;
mach_msg_header_t msg;
@@ -41,11 +40,10 @@ __pthread_timedblock (struct __pthread *thread,
relative time. Arg. */
err = clock_gettime (clock_id, &now);
- assert (! err);
+ assert (!err);
if (now.tv_sec > abstime->tv_sec
- || (now.tv_sec == abstime->tv_sec
- && now.tv_nsec > abstime->tv_nsec))
+ || (now.tv_sec == abstime->tv_sec && now.tv_nsec > abstime->tv_nsec))
return ETIMEDOUT;
timeout = (abstime->tv_sec - now.tv_sec) * 1000;