summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/key03.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/key03.c')
-rw-r--r--testsuites/psxtests/psxhdrs/key03.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/key03.c b/testsuites/psxtests/psxhdrs/key03.c
index 94b72dd204..55f62ccc22 100644
--- a/testsuites/psxtests/psxhdrs/key03.c
+++ b/testsuites/psxtests/psxhdrs/key03.c
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_getspecific"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_key_t key;
void *value;
@@ -32,4 +32,6 @@ void test( void )
key = 0;
value = pthread_getspecific( key );
+
+ return (value != 0);
}