diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-12 04:21:57 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-12 04:21:57 +0000 |
commit | 9ab1039db7550ae1362b709a3211b54c1a60b150 (patch) | |
tree | f6f444545b2159ab9de12556625feda2068de56f /testsuites/psxtests/psxhdrs | |
parent | 2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-9ab1039db7550ae1362b709a3211b54c1a60b150.tar.bz2 |
2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/sync01.c, psxhdrs/sync02.c: Let test() return values
(avoid warnings).
Diffstat (limited to 'testsuites/psxtests/psxhdrs')
-rw-r--r-- | testsuites/psxtests/psxhdrs/sync01.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/sync02.c | 6 |
2 files changed, 8 insertions, 4 deletions
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; } |