From 69b1322b0275107ee2b8827a340aeb5e3c8a8ce6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 22 Mar 2010 13:38:04 +0000 Subject: 2010-03-22 Joel Sherrill * libcsupport/src/sleep_noposix.c: Fix warning and bug. --- cpukit/libcsupport/src/sleep_noposix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpukit/libcsupport') 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 -- cgit v1.2.3