diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-02-07 00:04:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-02-07 00:04:10 +0000 |
commit | 78b4e2eb439bbf72327cf2e207f8a60e3637fafd (patch) | |
tree | 0f64e0043693465f1b21f0e588780a4782dd515c /testsuites/psxtests/psxkey01 | |
parent | 2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-78b4e2eb439bbf72327cf2e207f8a60e3637fafd.tar.bz2 |
2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxkey01/task.c: Fix warnings.
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxkey01/task.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuites/psxtests/psxkey01/task.c b/testsuites/psxtests/psxkey01/task.c index 13ac9b2f85..00d9249ca3 100644 --- a/testsuites/psxtests/psxkey01/task.c +++ b/testsuites/psxtests/psxkey01/task.c @@ -25,20 +25,20 @@ void *Task_1( void *arg ) { - pthread_t id = *(pthread_t *) arg; - int status; + pthread_t id = *(pthread_t *) arg; + int status; uint32_t *key_data; printf( "Thread 0x%08x\n", id ); - printf( "Task_1: Setting the key to %d\n", 1 ); - status = pthread_setspecific( Key_id, &Data_array[ 1 ] ); + printf( "Task_1: Setting the key to %d\n", 1 ); + status = pthread_setspecific( Key_id[0], (void *)&Data_array[ 1 ] ); if ( status ) printf( "status = %d\n", status ); assert( !status ); - key_data = pthread_getspecific( Key_id ); + key_data = pthread_getspecific( Key_id[0] ); printf( "Task_1: Got the key value of %ld\n", - (unsigned long) ((uint32_t *)key_data - Data_array) ); + (unsigned long) ((uint32_t *)key_data - Data_array) ); if ( status ) printf( "status = %d\n", status ); assert( !status ); |