diff options
Diffstat (limited to 'testsuites/sptests/sp04')
-rw-r--r-- | testsuites/sptests/sp04/system.h | 8 | ||||
-rw-r--r-- | testsuites/sptests/sp04/task1.c | 6 | ||||
-rw-r--r-- | testsuites/sptests/sp04/tswitch.c | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/testsuites/sptests/sp04/system.h b/testsuites/sptests/sp04/system.h index a932108d6d..98206bcd27 100644 --- a/testsuites/sptests/sp04/system.h +++ b/testsuites/sptests/sp04/system.h @@ -3,7 +3,7 @@ * This include file contains information that is included in every * function in the test set. * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -69,13 +69,13 @@ TEST_EXTERN volatile uint32_t Run_count[ 4 ]; */ struct taskSwitchLog { - int taskIndex; + unsigned int taskIndex; rtems_time_of_day when; }; extern struct taskSwitchLog taskSwitchLog[]; -extern int taskSwitchLogIndex; -volatile extern int testsFinished; +extern unsigned int taskSwitchLogIndex; +extern volatile int testsFinished; /* end of include file */ diff --git a/testsuites/sptests/sp04/task1.c b/testsuites/sptests/sp04/task1.c index 5eb249e648..e712568e6a 100644 --- a/testsuites/sptests/sp04/task1.c +++ b/testsuites/sptests/sp04/task1.c @@ -8,7 +8,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -23,8 +23,8 @@ static void showTaskSwitches (void) { - int i; - int switches = taskSwitchLogIndex; + unsigned int i; + unsigned int switches = taskSwitchLogIndex; for (i = 0 ; i < switches ; i++) { put_name( Task_name[taskSwitchLog[i].taskIndex], FALSE ); diff --git a/testsuites/sptests/sp04/tswitch.c b/testsuites/sptests/sp04/tswitch.c index 79cda908fe..bb0cfc7513 100644 --- a/testsuites/sptests/sp04/tswitch.c +++ b/testsuites/sptests/sp04/tswitch.c @@ -10,7 +10,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -23,7 +23,7 @@ #include "system.h" struct taskSwitchLog taskSwitchLog[1000]; -int taskSwitchLogIndex; +unsigned int taskSwitchLogIndex; volatile int testsFinished; rtems_extension Task_switch( |