From 49b7b17cfb0acce7b66edf4e4267b8f2b52d6d98 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 17 Aug 2005 22:57:41 +0000 Subject: 2005-08-17 Nuno Costa PR 805/rtems * posix/include/rtems/posix/timer.h: Due to bad choice of error constants by original submitter, it was impossible to create more than 10 POSIX timers. --- cpukit/posix/include/rtems/posix/timer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/include/rtems/posix/timer.h b/cpukit/posix/include/rtems/posix/timer.h index 5acaaca066..fe23831045 100644 --- a/cpukit/posix/include/rtems/posix/timer.h +++ b/cpukit/posix/include/rtems/posix/timer.h @@ -26,8 +26,8 @@ /* Nanoseconds in a second */ #define NSEC_PER_SEC_C (uint32_t )1000000000 -#define NO_MORE_TIMERS_C 11 /* There is not available timers */ -#define BAD_TIMER_C 11 /* The timer does not exist in the table */ +#define NO_MORE_TIMERS_C -1 /* There is not available timers */ +#define BAD_TIMER_C -2 /* The timer does not exist in the table */ #define SECONDS_PER_YEAR_C (uint32_t )(360 * 24) * (uint32_t )(60 * 60) #define SECONDS_PER_MONTH_C (uint32_t )( 30 * 24) * (uint32_t )(60 * 60) -- cgit v1.2.3