From bdb04f922004ff8433591f138e40c09722836c45 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 8 Dec 2002 08:25:05 +0000 Subject: Update. * scripts/output-format.sed: Fix bug in one of the s expressions which used / for one too many things. --- nptl/pt-nanosleep.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'nptl/pt-nanosleep.c') diff --git a/nptl/pt-nanosleep.c b/nptl/pt-nanosleep.c index 1d6cbb5170..91f111766a 100644 --- a/nptl/pt-nanosleep.c +++ b/nptl/pt-nanosleep.c @@ -27,15 +27,12 @@ int __nanosleep (const struct timespec *requested_time, struct timespec *remaining) { - int oldtype; - int result; - - CANCEL_ASYNC (oldtype); + int oldtype = CANCEL_ASYNC (); #ifdef INLINE_SYSCALL - result = INLINE_SYSCALL (nanosleep, 2, requested_time, remaining); + int result = INLINE_SYSCALL (nanosleep, 2, requested_time, remaining); #else - result = __libc_nanosleep (requested_time, remaining); + int result = __libc_nanosleep (requested_time, remaining); #endif CANCEL_RESET (oldtype); -- cgit v1.2.3