diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-11 01:41:16 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-11 01:41:16 +0000 |
commit | 2e7e636f7568558b7f3508ffd5acce55161668ef (patch) | |
tree | fec2e364c3df8bd689e794e82309c650584e5376 /testsuites/psxtests/psxtime | |
parent | 2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-2e7e636f7568558b7f3508ffd5acce55161668ef.tar.bz2 |
2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx01/init.c, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c,
psx04/init.c, psx04/task1.c, psx04/task3.c, psx05/init.c,
psx06/init.c, psx07/init.c, psx08/init.c, psx09/init.c, psx11/task.c,
psx12/init.c, psx13/main.c, psx13/test.c, psxbarrier01/test.c,
psxcancel/init.c, psxcleanup/psxcleanup.c, psxenosys/init.c,
psxmsgq02/init.c, psxtime/main.c, psxtime/test.c,
psxtimer01/psxtimer.c, psxtimer02/psxtimer.c: Fix warnings.
Diffstat (limited to 'testsuites/psxtests/psxtime')
-rw-r--r-- | testsuites/psxtests/psxtime/main.c | 5 | ||||
-rw-r--r-- | testsuites/psxtests/psxtime/test.c | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxtime/main.c b/testsuites/psxtests/psxtime/main.c index 0d4d506894..59a417a2dc 100644 --- a/testsuites/psxtests/psxtime/main.c +++ b/testsuites/psxtests/psxtime/main.c @@ -1,7 +1,7 @@ /* * Simple test program -- simplified version of sample test hello. * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -17,6 +17,9 @@ #include <tmacros.h> /* instantiate buffering code if needed */ void test_main( void ); +rtems_task Init( + rtems_task_argument ignored +); rtems_task Init( rtems_task_argument ignored diff --git a/testsuites/psxtests/psxtime/test.c b/testsuites/psxtests/psxtime/test.c index 629a102fc3..72d436ae30 100644 --- a/testsuites/psxtests/psxtime/test.c +++ b/testsuites/psxtests/psxtime/test.c @@ -2,7 +2,7 @@ * This test exercises the time of day services via the Classic * and POSIX APIs to make sure they are consistent. * - * 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,6 +23,11 @@ #include <rtems.h> #include <rtems/libio.h> +void test_adjtime(void); +void check_a_tod( + rtems_time_of_day *the_tod +); + /* * List of dates and times to test. */ @@ -86,7 +91,7 @@ void check_a_tod( } while( i < 6 ); } -void test_adjtime() +void test_adjtime(void) { int sc; rtems_status_code status; @@ -145,6 +150,8 @@ void test_adjtime() */ #if defined(__rtems__) +int test_main(void); + int test_main(void) #else int main( |