summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-12 04:21:57 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-12 04:21:57 +0000
commit9ab1039db7550ae1362b709a3211b54c1a60b150 (patch)
treef6f444545b2159ab9de12556625feda2068de56f /testsuites
parent2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-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')
-rw-r--r--testsuites/psxtests/ChangeLog2
-rw-r--r--testsuites/psxtests/psxhdrs/sync01.c6
-rw-r--r--testsuites/psxtests/psxhdrs/sync02.c6
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;
}