From 9ab1039db7550ae1362b709a3211b54c1a60b150 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 12 Oct 2011 04:21:57 +0000 Subject: =?UTF-8?q?2011-10-12=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * psxhdrs/sync01.c, psxhdrs/sync02.c: Let test() return values (avoid warnings). --- testsuites/psxtests/ChangeLog | 2 ++ testsuites/psxtests/psxhdrs/sync01.c | 6 ++++-- testsuites/psxtests/psxhdrs/sync02.c | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) (limited to 'testsuites') 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 + * 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 -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 -void test( void ); +int test( void ); -void test( void ) +int test( void ) { int fd; int result; fd = 4; result = fdatasync( fd ); + + return result; } -- cgit v1.2.3