From 293173f87072bbc0cafc457d5d8a6039f4d1d259 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 20 Mar 2011 02:21:38 +0100 Subject: pthreadP.h: avoid shadow warnings Change CANCELLATION_P macro and adapt usage. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/unistd/sleep.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libc/unistd') diff --git a/libc/unistd/sleep.c b/libc/unistd/sleep.c index 9db115a29..64753a873 100644 --- a/libc/unistd/sleep.c +++ b/libc/unistd/sleep.c @@ -99,6 +99,7 @@ unsigned int sleep (unsigned int seconds) /* This is not necessary but some buggy programs depend on this. */ if (seconds == 0) { # ifdef CANCELLATION_P + int cancelhandling; CANCELLATION_P (THREAD_SELF); # endif return 0; -- cgit v1.2.3