summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/pthread29.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/pthread29.c')
-rw-r--r--testsuites/psxtests/psxhdrs/pthread29.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread29.c b/testsuites/psxtests/psxhdrs/pthread29.c
index e642f8bf75..69be2976b2 100644
--- a/testsuites/psxtests/psxhdrs/pthread29.c
+++ b/testsuites/psxtests/psxhdrs/pthread29.c
@@ -22,14 +22,14 @@
#error "rtems is supposed to have pthread_setcancelstate"
#endif
-void test( void );
+int test( void );
void init_routine( void );
void init_routine( void )
{
}
-void test( void )
+int test( void )
{
int state;
int oldstate;
@@ -39,4 +39,6 @@ void test( void )
state = PTHREAD_CANCEL_DISABLE;
result = pthread_setcancelstate( state, &oldstate );
+
+ return result;
}