diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-11 01:41:16 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-11 01:41:16 +0000 |
commit | 2e7e636f7568558b7f3508ffd5acce55161668ef (patch) | |
tree | fec2e364c3df8bd689e794e82309c650584e5376 /testsuites/psxtests/psx06 | |
parent | 2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-2e7e636f7568558b7f3508ffd5acce55161668ef.tar.bz2 |
2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx01/init.c, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c,
psx04/init.c, psx04/task1.c, psx04/task3.c, psx05/init.c,
psx06/init.c, psx07/init.c, psx08/init.c, psx09/init.c, psx11/task.c,
psx12/init.c, psx13/main.c, psx13/test.c, psxbarrier01/test.c,
psxcancel/init.c, psxcleanup/psxcleanup.c, psxenosys/init.c,
psxmsgq02/init.c, psxtime/main.c, psxtime/test.c,
psxtimer01/psxtimer.c, psxtimer02/psxtimer.c: Fix warnings.
Diffstat (limited to 'testsuites/psxtests/psx06')
-rw-r--r-- | testsuites/psxtests/psx06/init.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/testsuites/psxtests/psx06/init.c b/testsuites/psxtests/psx06/init.c index 863d8baefc..e22f93e57d 100644 --- a/testsuites/psxtests/psx06/init.c +++ b/testsuites/psxtests/psx06/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -13,8 +13,10 @@ #include "system.h" #include <errno.h> +void Key_destructor( void *key_data ); + void Key_destructor( - void *key_data + void *key_data ) { Destructor_invoked++; @@ -73,15 +75,15 @@ void *POSIX_Init( assert( status == EAGAIN ); puts( "Init: pthread_setspecific - EINVAL (invalid key)" ); - status = pthread_setspecific( -1, &Data_array[ 0 ] ); + status = pthread_setspecific( (pthread_t) -1, &Data_array[ 0 ] ); assert( status == EINVAL ); puts( "Init: pthread_getspecific - EINVAL (invalid key)" ); - key_data = pthread_getspecific( -1 ); + key_data = pthread_getspecific( (pthread_t) -1 ); assert( !key_data ); puts( "Init: pthread_key_delete - EINVAL (invalid key)" ); - status = pthread_key_delete( -1 ); + status = pthread_key_delete( (pthread_t) -1 ); assert( status == EINVAL ); printf( "Init: Setting the key to %d\n", 0 ); |