diff options
Diffstat (limited to 'sysdeps/mach/pt-timedblock.c')
-rw-r--r-- | sysdeps/mach/pt-timedblock.c | 8 |
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; |