summary refs log tree commit diff
path: root/nptl/pthread_condattr_getclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_condattr_getclock.c')
-rw-r--r--nptl/pthread_condattr_getclock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/pthread_condattr_getclock.c b/nptl/pthread_condattr_getclock.c
index d156302ffb..cecb4aa8a5 100644
--- a/nptl/pthread_condattr_getclock.c
+++ b/nptl/pthread_condattr_getclock.c
@@ -23,6 +23,6 @@ int
 pthread_condattr_getclock (const pthread_condattr_t *attr, clockid_t *clock_id)
 {
   *clock_id = (((((const struct pthread_condattr *) attr)->value) >> 1)
-	       & ((1 << COND_NWAITERS_SHIFT) - 1));
+	       & ((1 << COND_CLOCK_BITS) - 1));
   return 0;
 }