summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm02
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-05 16:46:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-05 16:46:00 +0000
commit3f42f12c9f7f87aff6f01b4ff0a52bff1b2c9c29 (patch)
treef24c1e36eb74adefe5845adbc583f7377d37e3d6 /testsuites/tmtests/tm02
parent2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-3f42f12c9f7f87aff6f01b4ff0a52bff1b2c9c29.tar.bz2
2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm15/task1.c: Remove warnings.
Diffstat (limited to 'testsuites/tmtests/tm02')
-rw-r--r--testsuites/tmtests/tm02/task1.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/testsuites/tmtests/tm02/task1.c b/testsuites/tmtests/tm02/task1.c
index cfa0396043..40740a9fc9 100644
--- a/testsuites/tmtests/tm02/task1.c
+++ b/testsuites/tmtests/tm02/task1.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2009.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -121,10 +121,10 @@ rtems_task High_task(
rtems_task_argument argument
)
{
- rtems_status_code status;
+ /* start blocking rtems_semaphore_obtain time */
+ benchmark_timer_initialize();
- benchmark_timer_initialize(); /* start blocking rtems_semaphore_obtain time */
- status = rtems_semaphore_obtain(
+ (void) rtems_semaphore_obtain(
Semaphore_id,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
@@ -135,9 +135,7 @@ rtems_task Middle_tasks(
rtems_task_argument argument
)
{
- rtems_status_code status;
-
- status = rtems_semaphore_obtain(
+ (void) rtems_semaphore_obtain(
Semaphore_id,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT