summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/mutex05.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/mutex05.c')
-rw-r--r--testsuites/psxtests/psxhdrs/mutex05.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/mutex05.c b/testsuites/psxtests/psxhdrs/mutex05.c
index d6f5ac0963..b41bf1d9f3 100644
--- a/testsuites/psxtests/psxhdrs/mutex05.c
+++ b/testsuites/psxtests/psxhdrs/mutex05.c
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_mutex_lock"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_lock( &mutex );
+
+ return result;
}