summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-20 02:21:38 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:29 +0200
commit293173f87072bbc0cafc457d5d8a6039f4d1d259 (patch)
treecbc03b300d8d1f3913f2503299a4bb4db2372a35 /libc
parent995b4989cdde07816b807cfae620ee85814b9f7d (diff)
pthreadP.h: avoid shadow warnings
Change CANCELLATION_P macro and adapt usage. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/unistd/sleep.c1
1 files changed, 1 insertions, 0 deletions
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;