Changeset bd029d87 in rtems


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.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r9cda6603 rbd029d87  
     12008-08-04      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        PR 1265/cpukit
     4        * score/include/rtems/score/object.h,
     5        score/src/objectallocatebyindex.c: Rename index argument to avoid
     6        warning when rtems.h and string.h are included at the same time by
     7        user code.
     8
    192008-07-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • cpukit/score/include/rtems/score/object.h

    r9cda6603 rbd029d87  
    507507 *
    508508 *  @param[in] information points to an object class information block.
    509  *  @param[in] index is the index of the object to allocate.
     509 *  @param[in] the_index is the index of the object to allocate.
    510510 *  @param[in] sizeof_control is the size of the object control block.
    511511 */
    512512Objects_Control *_Objects_Allocate_by_index(
    513513  Objects_Information *information,
    514   uint16_t             index,
     514  uint16_t             the_index,
    515515  uint16_t             sizeof_control
    516516);
  • 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.