From 1055ce20fce7730cd46bb41230252cbaf1acce83 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 9 May 2009 21:24:06 +0000 Subject: Fix most warnings. --- testsuites/tmtests/tm07/task1.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'testsuites/tmtests/tm07/task1.c') diff --git a/testsuites/tmtests/tm07/task1.c b/testsuites/tmtests/tm07/task1.c index a776e5ad24..dacf28033e 100644 --- a/testsuites/tmtests/tm07/task1.c +++ b/testsuites/tmtests/tm07/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 @@ -26,7 +26,7 @@ rtems_task Low_task( rtems_task_argument argument ); -void test_init(); +void test_init(void); int operation_count = OPERATION_COUNT; @@ -46,17 +46,17 @@ rtems_task Init( directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); } -void test_init() +void test_init(void) { rtems_status_code status; rtems_task_priority priority; rtems_task_entry task_entry; - uint32_t index; + int index; - priority = RTEMS_MAXIMUM_PRIORITY - 1; + priority = RTEMS_MAXIMUM_PRIORITY - 1u; - if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 ) - operation_count = RTEMS_MAXIMUM_PRIORITY - 2; + if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2u ) + operation_count = (int) (RTEMS_MAXIMUM_PRIORITY - 2u); for( index=0 ; index <= operation_count ; index++ ) { status = rtems_task_create( -- cgit v1.2.3