diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-11 14:12:11 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-11 14:12:11 -0500 |
commit | 6c2de6052d450fa36338ed0c082647b9d535a928 (patch) | |
tree | cf352d1305edc992fceda6c7b75ab3658b982834 /testsuites/psxtests/psxrdwrv | |
parent | libtmtests - Eliminate missing prototype warnings (diff) | |
download | rtems-6c2de6052d450fa36338ed0c082647b9d535a928.tar.bz2 |
psxtests - Eliminate missing prototype warnings
Diffstat (limited to 'testsuites/psxtests/psxrdwrv')
-rw-r--r-- | testsuites/psxtests/psxrdwrv/main.c | 8 | ||||
-rw-r--r-- | testsuites/psxtests/psxrdwrv/test.c | 23 |
2 files changed, 19 insertions, 12 deletions
diff --git a/testsuites/psxtests/psxrdwrv/main.c b/testsuites/psxtests/psxrdwrv/main.c index d29222955b..29f197c8e8 100644 --- a/testsuites/psxtests/psxrdwrv/main.c +++ b/testsuites/psxtests/psxrdwrv/main.c @@ -1,7 +1,5 @@ /* - * Simple test program -- simplified version of sample test hello. - * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -18,7 +16,9 @@ #include <bsp.h> #include <pmacros.h> -void test_main( void ); +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument ignored); +void test_main(void); rtems_task Init( rtems_task_argument ignored diff --git a/testsuites/psxtests/psxrdwrv/test.c b/testsuites/psxtests/psxrdwrv/test.c index 9ab555ba84..cedca900a9 100644 --- a/testsuites/psxtests/psxrdwrv/test.c +++ b/testsuites/psxtests/psxrdwrv/test.c @@ -1,10 +1,14 @@ -/* +/** + * @file + * * This test exercises the following routines: * * + readv * + writev - * - * COPYRIGHT (c) 1989-2009. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -39,8 +43,13 @@ #define rtems_test_exit(_s) exit(_s) #endif -#define TESTFILE "testfile1.tst" +/* forward declarations to avoid warnings */ +int test_main(void); +int fillPatternBuffer(void); +int doFunctionalTest(void); +int doErrorTest(void); +#define TESTFILE "testfile1.tst" /* This buffer size is assumed in the iovec initialization below */ #define MAX_BUFFER 1000 @@ -56,7 +65,6 @@ unsigned char ReadBuffer[MAX_BUFFER]; * FALSE if buffer failed to fill * */ - int fillPatternBuffer(void) { int retval = TRUE; @@ -79,8 +87,8 @@ int fillPatternBuffer(void) * FALSE if an operation did not work as expected. * */ - -int doFunctionalTest(void) { +int doFunctionalTest(void) +{ FILE *fp; int fd; struct iovec rdvec[4]; @@ -165,7 +173,6 @@ int doFunctionalTest(void) { * FALSE if an operation did not work as expected. * */ - int doErrorTest(void) { FILE *fp; |