diff options
Diffstat (limited to 'nptl/pthread_condattr_setclock.c')
-rw-r--r-- | nptl/pthread_condattr_setclock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nptl/pthread_condattr_setclock.c b/nptl/pthread_condattr_setclock.c index 09488aff9b..0f1829c502 100644 --- a/nptl/pthread_condattr_setclock.c +++ b/nptl/pthread_condattr_setclock.c @@ -44,8 +44,9 @@ pthread_condattr_setclock (attr, clock_id) struct timespec ts; INTERNAL_SYSCALL_DECL (err); - int val = INTERNAL_SYSCALL (clock_getres, err, 2, CLOCK_MONOTONIC, - &ts); + int val; + val = INTERNAL_SYSCALL (clock_getres, err, 2, CLOCK_MONOTONIC, + &ts); avail = INTERNAL_SYSCALL_ERROR_P (val, err) ? -1 : 1; } |