summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm04/task1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-09 21:24:06 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-09 21:24:06 +0000
commit1055ce20fce7730cd46bb41230252cbaf1acce83 (patch)
treef1bafa58b57cfe61d7acf5947f4d1fb337e72c9e /testsuites/tmtests/tm04/task1.c
parent2009-05-09 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-1055ce20fce7730cd46bb41230252cbaf1acce83.tar.bz2
Fix most warnings.
Diffstat (limited to 'testsuites/tmtests/tm04/task1.c')
-rw-r--r--testsuites/tmtests/tm04/task1.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/testsuites/tmtests/tm04/task1.c b/testsuites/tmtests/tm04/task1.c
index f60246270e..ba3477335f 100644
--- a/testsuites/tmtests/tm04/task1.c
+++ b/testsuites/tmtests/tm04/task1.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2008.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,7 +14,7 @@
rtems_id Semaphore_id;
rtems_id Task_id[OPERATION_COUNT+1];
-uint32_t task_count;
+uint32_t task_count;
rtems_id Highest_id;
rtems_task Low_tasks(
@@ -25,11 +25,15 @@ rtems_task High_task(
rtems_task_argument argument
);
+rtems_task Highest_task(
+ rtems_task_argument argument
+);
+
rtems_task Restart_task(
rtems_task_argument argument
);
-void test_init();
+void test_init(void);
rtems_task Init(
rtems_task_argument argument
@@ -47,10 +51,10 @@ rtems_task Init(
directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
}
-void test_init()
+void test_init(void)
{
rtems_status_code status;
- uint32_t index;
+ int index;
task_count = OPERATION_COUNT;
@@ -101,7 +105,7 @@ rtems_task Highest_task(
status = rtems_task_set_priority(
RTEMS_CURRENT_PRIORITY,
- RTEMS_MAXIMUM_PRIORITY - 1,
+ RTEMS_MAXIMUM_PRIORITY - 1u,
&old_priority
);
directive_failed( status, "rtems_task_set_priority" );
@@ -214,7 +218,7 @@ rtems_task High_task(
for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
status = rtems_task_create(
name,
- RTEMS_MAXIMUM_PRIORITY - 4,
+ RTEMS_MAXIMUM_PRIORITY - 4u,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_NO_PREEMPT,
RTEMS_DEFAULT_ATTRIBUTES,
@@ -261,7 +265,7 @@ rtems_task High_task(
for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
status = rtems_task_create(
name,
- RTEMS_MAXIMUM_PRIORITY - 4,
+ RTEMS_MAXIMUM_PRIORITY - 4u,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
RTEMS_DEFAULT_ATTRIBUTES,