summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/ticker/tasks.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-05 16:45:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-05 16:45:40 +0000
commit7c1e69429a28adf03216c755bc1b4504c6e735b2 (patch)
tree891479b5bad29f5dc64d0a430f768d7514ecbec5 /testsuites/samples/ticker/tasks.c
parent2011-05-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-7c1e69429a28adf03216c755bc1b4504c6e735b2.tar.bz2
2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* base_sp/apptask.c, base_sp/init.c, fileio/init.c, fileio/system.h, nsecs/init.c, ticker/init.c, ticker/system.h, ticker/tasks.c: Remove warnings.
Diffstat (limited to '')
-rw-r--r--testsuites/samples/ticker/tasks.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/samples/ticker/tasks.c b/testsuites/samples/ticker/tasks.c
index a1f6d34584..3b16a8ed01 100644
--- a/testsuites/samples/ticker/tasks.c
+++ b/testsuites/samples/ticker/tasks.c
@@ -29,10 +29,12 @@ rtems_task Test_task(
{
rtems_id tid;
rtems_time_of_day time;
- uint32_t task_index;
+ uint32_t task_index;
rtems_status_code status;
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
+ directive_failed( status, "task ident" );
+
task_index = task_number( tid );
for ( ; ; ) {
status = rtems_clock_get_tod( &time );
@@ -43,6 +45,8 @@ rtems_task Test_task(
put_name( Task_name[ task_index ], FALSE );
print_time( " - rtems_clock_get_tod - ", &time, "\n" );
status = rtems_task_wake_after(
- task_index * 5 * rtems_clock_get_ticks_per_second() );
+ task_index * 5 * rtems_clock_get_ticks_per_second()
+ );
+ directive_failed( status, "wake after" );
}
}