Ignore:
Timestamp:
Aug 4, 2008, 7:49:33 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.8
Children:
b72e847b
Parents:
9cda6603
Message:

2008-08-04 Joel Sherrill <joel.sherrill@…>

PR 1265/cpukit

  • score/include/rtems/score/object.h, score/src/objectallocatebyindex.c: Rename index argument to avoid warning when rtems.h and string.h are included at the same time by user code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/objectallocatebyindex.c

    r9cda6603 rbd029d87  
    4242Objects_Control *_Objects_Allocate_by_index(
    4343  Objects_Information *information,
    44   uint16_t             index,
     44  uint16_t             the_index,
    4545  uint16_t             sizeof_control
    4646)
     
    4848  Objects_Control *the_object;
    4949
    50   if ( index && information->maximum >= index ) {
    51     the_object = information->local_table[ index ];
     50  if ( the_index && information->maximum >= the_index ) {
     51    the_object = information->local_table[ the_index ];
    5252    if ( the_object )
    5353      return NULL;
     
    6262    the_object = (Objects_Control *) _Addresses_Add_offset(
    6363      information->object_blocks[ 0 ],
    64       (sizeof_control * (index - 1))
     64      (sizeof_control * (the_index - 1))
    6565    );
    6666    _Chain_Extract( &the_object->Node );
Note: See TracChangeset for help on using the changeset viewer.