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/psxhdrs/sync01.c | 6 ++++-- testsuites/psxtests/psxhdrs/sync02.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'testsuites/psxtests/psxhdrs') 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