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