aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/clock_nanosleep.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-17 02:52:07 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-17 02:52:07 +0000
commita5ff61042d7d8fb8cc939da320043203887c69a4 (patch)
tree16a160dfeb1148a117f5c8f7cf50cceb337c5767 /sysdeps/unix/clock_nanosleep.c
parent1eefffb0e7fb26e4bf11cdaeae54d30bcc66f369 (diff)
downloadglibc-a5ff61042d7d8fb8cc939da320043203887c69a4.tar
glibc-a5ff61042d7d8fb8cc939da320043203887c69a4.tar.gz
glibc-a5ff61042d7d8fb8cc939da320043203887c69a4.tar.bz2
glibc-a5ff61042d7d8fb8cc939da320043203887c69a4.zip
(CPUCLOCK_P): Fix definition.
Diffstat (limited to 'sysdeps/unix/clock_nanosleep.c')
-rw-r--r--sysdeps/unix/clock_nanosleep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/clock_nanosleep.c b/sysdeps/unix/clock_nanosleep.c
index 358269852a..ec468ad8c9 100644
--- a/sysdeps/unix/clock_nanosleep.c
+++ b/sysdeps/unix/clock_nanosleep.c
@@ -25,15 +25,15 @@
#if HP_TIMING_AVAIL
# define CPUCLOCK_P(clock) \
- ((clock) != CLOCK_PROCESS_CPUTIME_ID \
- && (clock) != CLOCK_THREAD_CPUTIME_ID)
+ ((clock) == CLOCK_PROCESS_CPUTIME_ID \
+ || (clock) == CLOCK_THREAD_CPUTIME_ID)
#else
# define CPUCLOCK_P(clock) 0
#endif
#ifndef INVALID_CLOCK_P
# define INVALID_CLOCK_P(cl) \
- ((cl) < CLOCK_REALTIME || (cl) > CLOCK_THREAD_CPUTIME_ID || CPUCLOCK_P (cl))
+ ((cl) < CLOCK_REALTIME || (cl) > CLOCK_THREAD_CPUTIME_ID)
#endif