about summary refs log tree commit diff
path: root/nptl/pthread_condattr_setclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_condattr_setclock.c')
-rw-r--r--nptl/pthread_condattr_setclock.c5
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;
 	}