From 6c2de6052d450fa36338ed0c082647b9d535a928 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 May 2012 14:12:11 -0500 Subject: psxtests - Eliminate missing prototype warnings --- testsuites/psxtests/psxrdwrv/main.c | 8 ++++---- testsuites/psxtests/psxrdwrv/test.c | 23 +++++++++++++++-------- 2 files changed, 19 insertions(+), 12 deletions(-) (limited to 'testsuites/psxtests/psxrdwrv') 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 #include -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; -- cgit v1.2.3