diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs/pthread27.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/pthread27.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread27.c b/testsuites/psxtests/psxhdrs/pthread27.c index a670557a70..9c38e0ffef 100644 --- a/testsuites/psxtests/psxhdrs/pthread27.c +++ b/testsuites/psxtests/psxhdrs/pthread27.c @@ -22,17 +22,19 @@ #error "rtems is supposed to have pthread_once" #endif -void test( void ); +int test( void ); void init_routine( void ); void init_routine( void ) { } -void test( void ) +int test( void ) { pthread_once_t once_control = PTHREAD_ONCE_INIT; int result; result = pthread_once( &once_control, init_routine ); + + return result; } |