diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 01:39:41 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 01:39:41 +0200 |
commit | 3849b385c44d8d8a2332c826e18d31cff7327e45 (patch) | |
tree | 7c00561a25e703446598315326a13a3a8b9a01b2 /sysdeps/mach | |
parent | 08ed02b9705b7bce1b8d79da6455d59a31295212 (diff) |
Fix coding style
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/pt-hurd-cond-timedwait.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/pt-mutex-transfer-np.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c b/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c index 93dc25c..a4e8fe9 100644 --- a/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c +++ b/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c @@ -122,7 +122,7 @@ __pthread_hurd_cond_timedwait_internal (pthread_cond_t *cond, suspending us while the condition lock is held. */ __spin_lock (&ss->lock); __pthread_spin_lock (&cond->__lock); - if (! self->prevp) + if (self->prevp == NULL) /* Another thread removed us from the list of waiters, which means a wakeup message has been sent. It was either consumed while we were blocking, or queued after we timed out and before we diff --git a/sysdeps/mach/hurd/pt-mutex-transfer-np.c b/sysdeps/mach/hurd/pt-mutex-transfer-np.c index 794f325..dc70909 100644 --- a/sysdeps/mach/hurd/pt-mutex-transfer-np.c +++ b/sysdeps/mach/hurd/pt-mutex-transfer-np.c @@ -28,7 +28,7 @@ int __pthread_mutex_transfer_np (pthread_mutex_t *mtxp, pthread_t th) struct __pthread *self = _pthread_self (); struct __pthread *pt = __pthread_getid (th); - if (!pt) + if (pt == NULL) return (ESRCH); else if (pt == self) return (0); |