summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems/posix/timer.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-12-02 19:15:24 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-12-02 19:15:24 +0000
commit35ee867eb90e35aa1084c75dbaf224be80a6e226 (patch)
tree951c6538dd4628955afa4b430f9ed67032926238 /cpukit/posix/include/rtems/posix/timer.h
parent2002-12-02 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-35ee867eb90e35aa1084c75dbaf224be80a6e226.tar.bz2
2002-12-02 Joel Sherrill <joel@OARcorp.com>
* include/rtems/posix/timer.h, src/keygetspecific.c, src/posixtimespecsubtract.c, src/ptimer1.c, src/semunlink.c: Added casts to eliminate warnings on 16-bit targets like the h8300.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/include/rtems/posix/timer.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/cpukit/posix/include/rtems/posix/timer.h b/cpukit/posix/include/rtems/posix/timer.h
index ba0745b8b3..5726c270f5 100644
--- a/cpukit/posix/include/rtems/posix/timer.h
+++ b/cpukit/posix/include/rtems/posix/timer.h
@@ -13,21 +13,23 @@
#define STATE_CREATE_NEW_C 0x02 /* Created timer but not running */
#define STATE_CREATE_RUN_C 0x03 /* Created timer and running */
#define STATE_CREATE_STOP_C 0x04 /* Created, ran and stopped timer */
-#define MAX_NSEC_C 1000000000 /* Maximum number of nsec allowed */
+/* Maximum number of nsec allowed */
+#define MAX_NSEC_C (unsigned32)1000000000
#define MIN_NSEC_C 0 /* Minimum number of nsec allowew */
#define TIMER_RELATIVE_C 0 /* Indicates that the fire time is
* relative to the current one */
#define SEC_TO_TICKS_C _TOD_Ticks_per_second /* Number of ticks in a second*/
-#define NSEC_PER_SEC_C 1000000000 /* Nanoseconds in a second */
+/* Nanoseconds in a second */
+#define NSEC_PER_SEC_C (unsigned32)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 SECONDS_PER_YEAR_C ( 360 * 24 * 60 * 60 )
-#define SECONDS_PER_MONTH_C ( 30 * 24 * 60 * 60 )
-#define SECONDS_PER_DAY_C ( 24 * 60 * 60 )
-#define SECONDS_PER_HOUR_C ( 60 * 60 )
-#define SECONDS_PER_MINUTE_C ( 60 )
+#define SECONDS_PER_YEAR_C (unsigned32)(360 * 24) * (unsigned32)(60 * 60)
+#define SECONDS_PER_MONTH_C (unsigned32)( 30 * 24) * (unsigned32)(60 * 60)
+#define SECONDS_PER_DAY_C (unsigned32)( 24 * 60) * (unsigned32)(60)
+#define SECONDS_PER_HOUR_C (unsigned32)( 60 * 60 )
+#define SECONDS_PER_MINUTE_C (unsigned32)( 60 )
/*