diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-15 09:19:50 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-15 09:19:50 +0000 |
commit | 63f4be9999040d271803fba5ca4b57b5d576a01f (patch) | |
tree | 094dfa385900259c60394107305d92f50f137373 /testsuites/psxtests/psxhdrs/key03.c | |
parent | 2011-10-15 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-63f4be9999040d271803fba5ca4b57b5d576a01f.tar.bz2 |
2011-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/key01.c, psxhdrs/key02.c, psxhdrs/key03.c,
psxhdrs/key04.c: Let test() return values (avoid warnings).
Diffstat (limited to 'testsuites/psxtests/psxhdrs/key03.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/key03.c | 6 |
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); } |