summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/pthread03.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/pthread03.c')
-rw-r--r--testsuites/psxtests/psxhdrs/pthread03.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread03.c b/testsuites/psxtests/psxhdrs/pthread03.c
index be110bcb64..8312666d7d 100644
--- a/testsuites/psxtests/psxhdrs/pthread03.c
+++ b/testsuites/psxtests/psxhdrs/pthread03.c
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_attr_setdetachstate"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
int state;
@@ -34,4 +34,6 @@ void test( void )
state = PTHREAD_CREATE_JOINABLE;
result = pthread_attr_setdetachstate( &attribute, state );
+
+ return result;
}