From 38cc8d5385cde3534a4dd4c6e1ae43c8f06fa3ea Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 17 Oct 2011 11:17:11 +0000 Subject: =?UTF-8?q?2011-10-17=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * psxhdrs/mutex01.c, psxhdrs/mutex02.c, psxhdrs/mutex03.c, psxhdrs/mutex04.c, psxhdrs/mutex05.c, psxhdrs/mutex06.c, psxhdrs/mutex07.c, psxhdrs/mutex08.c, psxhdrs/mutex09.c, psxhdrs/mutex10.c, psxhdrs/mutex11.c, psxhdrs/mutex12.c, psxhdrs/mutex13.c, psxhdrs/mutex14.c, psxhdrs/mutex15.c, psxhdrs/mutex16.c: Let test() return values (avoid warnings). --- testsuites/psxtests/psxhdrs/mutex07.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testsuites/psxtests/psxhdrs/mutex07.c') diff --git a/testsuites/psxtests/psxhdrs/mutex07.c b/testsuites/psxtests/psxhdrs/mutex07.c index 413fe303b4..11d7ef8933 100644 --- a/testsuites/psxtests/psxhdrs/mutex07.c +++ b/testsuites/psxtests/psxhdrs/mutex07.c @@ -25,9 +25,9 @@ #error "rtems is supposed to have pthread_mutexattr_setprotocol" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { pthread_mutexattr_t attribute; int protocol; @@ -38,4 +38,6 @@ void test( void ) protocol = PTHREAD_PRIO_PROTECT; result = pthread_mutexattr_setprotocol( &attribute, protocol ); + + return result; } -- cgit v1.2.3