summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-08-17 22:57:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-08-17 22:57:41 +0000
commit49b7b17cfb0acce7b66edf4e4267b8f2b52d6d98 (patch)
treecef96e30037de0a1a0caab47f7f48ac12e743b1b /cpukit/posix
parent2005-08-17 Andrew Sinclair <Andrew.Sinclair@elprotech.com> (diff)
downloadrtems-49b7b17cfb0acce7b66edf4e4267b8f2b52d6d98.tar.bz2
2005-08-17 Nuno Costa <nuno-costa@iol.pt>
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.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/include/rtems/posix/timer.h4
1 files changed, 2 insertions, 2 deletions
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)