diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-04 19:46:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-04 19:46:13 +0000 |
commit | dc112f3f4162d875078ddcbdcacd98e82c66862b (patch) | |
tree | 6184ce7b1b7e791fd7cb2550a9f6811639147459 /cpukit/score/src/objectallocatebyindex.c | |
parent | 2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-dc112f3f4162d875078ddcbdcacd98e82c66862b.tar.bz2 |
2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com>
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.
Diffstat (limited to 'cpukit/score/src/objectallocatebyindex.c')
-rw-r--r-- | cpukit/score/src/objectallocatebyindex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/objectallocatebyindex.c b/cpukit/score/src/objectallocatebyindex.c index 1a4ca6da85..474fec0d6f 100644 --- a/cpukit/score/src/objectallocatebyindex.c +++ b/cpukit/score/src/objectallocatebyindex.c @@ -41,14 +41,14 @@ Objects_Control *_Objects_Allocate_by_index( Objects_Information *information, - uint16_t index, + uint16_t the_index, uint16_t sizeof_control ) { Objects_Control *the_object; - if ( index && information->maximum >= index ) { - the_object = information->local_table[ index ]; + if ( the_index && information->maximum >= the_index ) { + the_object = information->local_table[ the_index ]; if ( the_object ) return NULL; @@ -61,7 +61,7 @@ Objects_Control *_Objects_Allocate_by_index( the_object = (Objects_Control *) _Addresses_Add_offset( information->object_blocks[ 0 ], - (sizeof_control * (index - 1)) + (sizeof_control * (the_index - 1)) ); _Chain_Extract( &the_object->Node ); |