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/psxreaddir | |
parent | libtmtests - Eliminate missing prototype warnings (diff) | |
download | rtems-6c2de6052d450fa36338ed0c082647b9d535a928.tar.bz2 |
psxtests - Eliminate missing prototype warnings
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxreaddir/main.c | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psxreaddir/test.c | 22 |
2 files changed, 21 insertions, 5 deletions
diff --git a/testsuites/psxtests/psxreaddir/main.c b/testsuites/psxtests/psxreaddir/main.c index c964bcdfe8..ad0a473b2d 100644 --- a/testsuites/psxtests/psxreaddir/main.c +++ b/testsuites/psxtests/psxreaddir/main.c @@ -11,7 +11,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/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 <errno.h> #include <rtems/imfs.h> +/* 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; |