diff options
-rw-r--r-- | testsuites/psxtests/ChangeLog | 2 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/sync01.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/sync02.c | 6 |
3 files changed, 10 insertions, 4 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index eb205660e5..8bad4249f0 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,5 +1,7 @@ 2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org> + * psxhdrs/sync01.c, psxhdrs/sync02.c: Let test() return values + (avoid warnings). * psxhdrs/time01.c, psxhdrs/time02.c, psxhdrs/time03.c, psxhdrs/time04.c, psxhdrs/time05.c, psxhdrs/time06.c, psxhdrs/time07.c, psxhdrs/time08.c, psxhdrs/time09.c, diff --git a/testsuites/psxtests/psxhdrs/sync01.c b/testsuites/psxtests/psxhdrs/sync01.c index 170e10638a..ce153c2b63 100644 --- a/testsuites/psxtests/psxhdrs/sync01.c +++ b/testsuites/psxtests/psxhdrs/sync01.c @@ -18,13 +18,15 @@ #include <unistd.h> -void test( void ); +int test( void ); -void test( void ) +int test( void ) { int fd; int result; fd = 4; result = fsync( fd ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/sync02.c b/testsuites/psxtests/psxhdrs/sync02.c index 7ed53db604..e286542d8f 100644 --- a/testsuites/psxtests/psxhdrs/sync02.c +++ b/testsuites/psxtests/psxhdrs/sync02.c @@ -18,13 +18,15 @@ #include <unistd.h> -void test( void ); +int test( void ); -void test( void ) +int test( void ) { int fd; int result; fd = 4; result = fdatasync( fd ); + + return result; } |