Ticket #859: patch

File patch, 2.7 KB (added by Eric Norum, on 12/03/06 at 13:31:13)

patch

  • cpukit/posix/inline/rtems/posix/cond.inl

    RCS file: /usr1/CVS/rtems/cpukit/posix/inline/rtems/posix/cond.inl,v
    retrieving revision 1.13
    diff -u -r1.13 cond.inl
     
    7272     *  Do an "auto-create" here.
    7373     */
    7474
    75     status = pthread_cond_init( id, 0 );
     75    status = pthread_cond_init( (pthread_cond_t *)id, 0 );
    7676    if ( status ) {
    7777      *location = OBJECTS_ERROR;
    7878      return (POSIX_Condition_variables_Control *) 0;
  • cpukit/posix/inline/rtems/posix/mutex.inl

    RCS file: /usr1/CVS/rtems/cpukit/posix/inline/rtems/posix/mutex.inl,v
    retrieving revision 1.13
    diff -u -r1.13 mutex.inl
     
    6565       *  Do an "auto-create" here. \
    6666       */ \
    6767    \
    68       _status = pthread_mutex_init( _id, 0 ); \
     68      _status = pthread_mutex_init( (pthread_mutex_t *)_id, 0 ); \
    6969      if ( _status ) { \
    7070        *_location = OBJECTS_ERROR;  \
    7171        return (POSIX_Mutex_Control *) 0; \
  • cpukit/posix/macros/rtems/posix/cond.inl

    RCS file: /usr1/CVS/rtems/cpukit/posix/macros/rtems/posix/cond.inl,v
    retrieving revision 1.6
    diff -u -r1.6 cond.inl
     
    6767       *  Do an "auto-create" here. \
    6868       */ \
    6969    \
    70       _status = pthread_cond_init( _id, 0 ); \
     70      _status = pthread_cond_init( (pthread_cond_t *)_id, 0 ); \
    7171      if ( _status ) { \
    7272        *_location = OBJECTS_ERROR;  \
    7373        return (POSIX_Condition_variables_Control *) 0; \
  • cpukit/posix/macros/rtems/posix/mutex.inl

    RCS file: /usr1/CVS/rtems/cpukit/posix/macros/rtems/posix/mutex.inl,v
    retrieving revision 1.5
    diff -u -r1.5 mutex.inl
     
    5959       *  Do an "auto-create" here. \
    6060       */ \
    6161    \
    62       _status = pthread_mutex_init( _id, 0 ); \
     62      _status = pthread_mutex_init( (pthread_mutex_t *)_id, 0 ); \
    6363      if ( _status ) { \
    6464        *_location = OBJECTS_ERROR;  \
    6565        return (POSIX_Mutex_Control *) 0; \