diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 02:03:11 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 02:03:11 +0200 |
commit | 8657c93f0adeefd1b50d54ae30aa0a4ba2d89827 (patch) | |
tree | 4fde4d311d435ab0f5413e168f4c99767f7032ef /sysdeps/mach/hurd/pt-hurd-cond-timedwait.c | |
parent | ed3150fb7413fce0321ad88a22de7871a301f7c3 (diff) |
Fix coding style
Diffstat (limited to 'sysdeps/mach/hurd/pt-hurd-cond-timedwait.c')
-rw-r--r-- | sysdeps/mach/hurd/pt-hurd-cond-timedwait.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c b/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c index 182a7e2..41792e3 100644 --- a/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c +++ b/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c @@ -69,7 +69,7 @@ __pthread_hurd_cond_timedwait_internal (pthread_cond_t *cond, assert (ss->intr_port == MACH_PORT_NULL); /* Sanity check for signal bugs. */ - if (abstime && (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000)) + if (abstime != NULL && (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000)) return EINVAL; /* Atomically enqueue our thread on the condition variable's queue of @@ -111,7 +111,7 @@ __pthread_hurd_cond_timedwait_internal (pthread_cond_t *cond, __pthread_mutex_unlock (mutex); /* Block the thread. */ - if (abstime) + if (abstime != NULL) err = __pthread_timedblock (self, abstime, clock_id); else { @@ -153,7 +153,7 @@ __pthread_hurd_cond_timedwait_internal (pthread_cond_t *cond, ss->cancel = 0; __spin_unlock (&ss->lock); - if (mutex) + if (mutex != NULL) /* Reacquire the mutex and return. */ __pthread_mutex_lock (mutex); |