diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-22 13:38:04 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-22 13:38:04 +0000 |
commit | 69b1322b0275107ee2b8827a340aeb5e3c8a8ce6 (patch) | |
tree | c0bd3e9bc89c545288a91d14f601b07a7103b33a /cpukit/libcsupport | |
parent | Regenerate. (diff) | |
download | rtems-69b1322b0275107ee2b8827a340aeb5e3c8a8ce6.tar.bz2 |
2010-03-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/sleep_noposix.c: Fix warning and bug.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/src/sleep_noposix.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 |