summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-22 13:38:04 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-22 13:38:04 +0000
commit69b1322b0275107ee2b8827a340aeb5e3c8a8ce6 (patch)
treec0bd3e9bc89c545288a91d14f601b07a7103b33a
parentRegenerate. (diff)
downloadrtems-69b1322b0275107ee2b8827a340aeb5e3c8a8ce6.tar.bz2
2010-03-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/sleep_noposix.c: Fix warning and bug.
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libcsupport/src/sleep_noposix.c3
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 <joel.sherrill@oarcorp.com>
+
+ * libcsupport/src/sleep_noposix.c: Fix warning and bug.
+
2010-03-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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