Changeset 78b4e2e in rtems


Ignore:
Timestamp:
Feb 7, 2008, 12:04:10 AM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
b62009c3
Parents:
9184270
Message:

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

  • psxkey01/task.c: Fix warnings.
Location:
testsuites/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r9184270 r78b4e2e  
     12008-02-06      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxkey01/task.c: Fix warnings.
     4
    152008-02-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • testsuites/psxtests/psxkey01/task.c

    r9184270 r78b4e2e  
    2626)
    2727{
    28   pthread_t id = *(pthread_t *) arg;
    29   int               status;
     28  pthread_t   id = *(pthread_t *) arg;
     29  int         status;
    3030  uint32_t   *key_data;
    3131
    3232  printf( "Thread 0x%08x\n", id );
    33    printf( "Task_1: Setting the key to %d\n", 1 );
    34   status = pthread_setspecific( Key_id, &Data_array[ 1 ] );
     33  printf( "Task_1: Setting the key to %d\n", 1 );
     34  status = pthread_setspecific( Key_id[0], (void *)&Data_array[ 1 ] );
    3535  if ( status )
    3636    printf( "status = %d\n", status );
    3737  assert( !status );
    3838
    39   key_data = pthread_getspecific( Key_id );
     39  key_data = pthread_getspecific( Key_id[0] );
    4040  printf( "Task_1: Got the key value of %ld\n",
    41           (unsigned long) ((uint32_t   *)key_data - Data_array) );
     41          (unsigned long) ((uint32_t *)key_data - Data_array) );
    4242  if ( status )
    4343    printf( "status = %d\n", status );
Note: See TracChangeset for help on using the changeset viewer.