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/psxreaddir/test.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'testsuites/psxtests/psxreaddir/test.c') diff --git a/testsuites/psxtests/psxreaddir/test.c b/testsuites/psxtests/psxreaddir/test.c index 76239de10a..28e62963c7 100644 --- a/testsuites/psxtests/psxreaddir/test.c +++ b/testsuites/psxtests/psxreaddir/test.c @@ -1,4 +1,6 @@ -/* +/** + * @file + * * This is a native test to explore how the readdir() family works. * Newlib supports the following readdir() family members: * @@ -14,8 +16,10 @@ * seekdir() takes an offset which is a byte offset. The Linux * implementation of this appears to seek to the ((off/DIRENT_SIZE) + 1) * record where DIRENT_SIZE seems to be 12 bytes. - * - * COPYRIGHT (c) 1989-2011. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -36,6 +40,17 @@ #include #include +/* forward declarations to avoid warnings */ +int test_main(void); +void printdir(DIR *directory); +void complete_printdir(char *path); +int select1(const struct dirent *entry); +int select2(const struct dirent *entry); +int compare_ascending(const struct dirent **a, const struct dirent **b); +int compare_descending( const struct dirent **a, const struct dirent **b); +void test_across_mount(void); +void test_across_mount(void); + DIR *directory; DIR *directory2; DIR *directory3; @@ -172,7 +187,6 @@ int compare_ascending(const struct dirent **a, const struct dirent **b ) return i; } - int compare_descending( const struct dirent **a, const struct dirent **b ) { int i; -- cgit v1.2.3