From 69b1322b0275107ee2b8827a340aeb5e3c8a8ce6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 22 Mar 2010 13:38:04 +0000 Subject: [PATCH] 2010-03-22 Joel Sherrill * libcsupport/src/sleep_noposix.c: Fix warning and bug. --- cpukit/ChangeLog | 4 ++++ cpukit/libcsupport/src/sleep_noposix.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index af85bd1053..d548f00806 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2010-03-22 Joel Sherrill + + * libcsupport/src/sleep_noposix.c: Fix warning and bug. + 2010-03-16 Joel Sherrill * libmisc/shell/shell_makeargs.c: Fix bugs introduced by patch diff --git a/cpukit/libcsupport/src/sleep_noposix.c b/cpukit/libcsupport/src/sleep_noposix.c index 8fc932fe98..2498dd9b0d 100644 --- a/cpukit/libcsupport/src/sleep_noposix.c +++ b/cpukit/libcsupport/src/sleep_noposix.c @@ -40,11 +40,10 @@ unsigned int sleep( { rtems_status_code status; rtems_interval ticks_per_second; - rtems_interval ticks; ticks_per_second = rtems_clock_get_ticks_per_second() * seconds; - status = rtems_task_wake_after( ticks ); + status = rtems_task_wake_after( ticks_per_second ); /* * Returns the "unslept" amount of time. In RTEMS signals are not