summaryrefslogtreecommitdiff
path: root/sysdeps/generic/pt-cond-timedwait.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 02:03:11 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 02:03:11 +0200
commit8657c93f0adeefd1b50d54ae30aa0a4ba2d89827 (patch)
tree4fde4d311d435ab0f5413e168f4c99767f7032ef /sysdeps/generic/pt-cond-timedwait.c
parented3150fb7413fce0321ad88a22de7871a301f7c3 (diff)
Fix coding style
Diffstat (limited to 'sysdeps/generic/pt-cond-timedwait.c')
-rw-r--r--sysdeps/generic/pt-cond-timedwait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/pt-cond-timedwait.c b/sysdeps/generic/pt-cond-timedwait.c
index e40958a..525e63d 100644
--- a/sysdeps/generic/pt-cond-timedwait.c
+++ b/sysdeps/generic/pt-cond-timedwait.c
@@ -108,7 +108,7 @@ __pthread_cond_timedwait_internal (pthread_cond_t *cond,
already unblocked, progressing on the return path. */
__pthread_spin_lock (&cond->__lock);
__pthread_enqueue (&cond->__queue, self);
- if (cond->__attr)
+ if (cond->__attr != NULL)
clock_id = cond->__attr->__clock;
__pthread_spin_unlock (&cond->__lock);
}
@@ -121,7 +121,7 @@ __pthread_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
{