summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/pthread26.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/pthread26.c')
-rw-r--r--testsuites/psxtests/psxhdrs/pthread26.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread26.c b/testsuites/psxtests/psxhdrs/pthread26.c
index 350eaf64e5..a13400a52b 100644
--- a/testsuites/psxtests/psxhdrs/pthread26.c
+++ b/testsuites/psxtests/psxhdrs/pthread26.c
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_join"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
void *value_ptr;
@@ -33,4 +33,6 @@ void test( void )
thread = 0;
result = pthread_join( thread, &value_ptr );
+
+ return result;
}