2010-03-22 Joel Sherrill <joel.sherrill@oarcorp.com>

* libcsupport/src/sleep_noposix.c: Fix warning and bug.
This commit is contained in:
Joel Sherrill
2010-03-22 13:38:04 +00:00
parent e7a21fe047
commit 69b1322b02
2 changed files with 5 additions and 2 deletions
+4
View File
@@ -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
+1 -2
View File
@@ -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