summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/mutex10.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/mutex10.c')
-rw-r--r--testsuites/psxtests/psxhdrs/mutex10.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/mutex10.c b/testsuites/psxtests/psxhdrs/mutex10.c
index c6771a5576..d8b00a2910 100644
--- a/testsuites/psxtests/psxhdrs/mutex10.c
+++ b/testsuites/psxtests/psxhdrs/mutex10.c
@@ -25,13 +25,15 @@
#error "rtems is supposed to have pthread_mutexattr_setpshared"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutexattr_t attribute;
int pshared;
int result;
result = pthread_mutexattr_getpshared( &attribute, &pshared );
+
+ return result;
}