2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com>

* psxkey01/task.c: Fix warnings.
This commit is contained in:
Joel Sherrill
2008-02-07 00:04:10 +00:00
parent 9184270ac4
commit 78b4e2eb43
2 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxkey01/task.c: Fix warnings.
2008-02-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxkey01/.cvsignore, psxmsgq02/.cvsignore: New files.

View File

@@ -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 );