summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/ptimer1.c
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/src/ptimer1.c
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 'cpukit/posix/src/ptimer1.c')
-rw-r--r--cpukit/posix/src/ptimer1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/posix/src/ptimer1.c b/cpukit/posix/src/ptimer1.c
index 820f61f1a4..907645ce18 100644
--- a/cpukit/posix/src/ptimer1.c
+++ b/cpukit/posix/src/ptimer1.c
@@ -573,7 +573,8 @@ int timer_settime(
timer_struct[timer_pos].ticks =
( SEC_TO_TICKS_C * value->it_value.tv_sec ) +
- ( value->it_value.tv_nsec / ( 1000 * 1000 * 10 ) );
+ ( value->it_value.tv_nsec /
+ (1000L * (unsigned32)(1000 * 10) ));
return_v = rtems_timer_fire_after ( timerid,
timer_struct[timer_pos].ticks,