From 78b4e2eb439bbf72327cf2e207f8a60e3637fafd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 7 Feb 2008 00:04:10 +0000 Subject: 2008-02-06 Joel Sherrill * psxkey01/task.c: Fix warnings. --- testsuites/psxtests/ChangeLog | 4 ++++ testsuites/psxtests/psxkey01/task.c | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'testsuites') diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index 077a10af47..2fb375e6e7 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,7 @@ +2008-02-06 Joel Sherrill + + * psxkey01/task.c: Fix warnings. + 2008-02-05 Joel Sherrill * psxkey01/.cvsignore, psxmsgq02/.cvsignore: New files. 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 ); -- cgit v1.2.3