summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectextendinformation.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-22 06:16:52 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-07 14:22:01 +0100
commit0da9d805cd697dd2eed050374f704b29e8d3c18a (patch)
tree16031d8637dbc21e1927354049c9ab581caafae4 /cpukit/score/src/objectextendinformation.c
parentscore: Remove Objects_Information::is_string (diff)
downloadrtems-0da9d805cd697dd2eed050374f704b29e8d3c18a.tar.bz2
score: Rename Objects_Information::size
Rename Objects_Information::size to Objects_Information::object_size. Change its type from size_t to uint16_t and move it to reduce the size of Objects_Information. Update #3621.
Diffstat (limited to 'cpukit/score/src/objectextendinformation.c')
-rw-r--r--cpukit/score/src/objectextendinformation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/objectextendinformation.c b/cpukit/score/src/objectextendinformation.c
index d2ee7fdf8b..3fc9cdd464 100644
--- a/cpukit/score/src/objectextendinformation.c
+++ b/cpukit/score/src/objectextendinformation.c
@@ -100,7 +100,7 @@ void _Objects_Extend_information(
* Allocate the name table, and the objects and if it fails either return or
* generate a fatal error depending on auto-extending being active.
*/
- object_block_size = information->allocation_size * information->size;
+ object_block_size = information->allocation_size * information->object_size;
if ( information->auto_extend ) {
new_object_block = _Workspace_Allocate( object_block_size );
if ( !new_object_block )
@@ -261,6 +261,6 @@ void _Objects_Extend_information(
_Chain_Initialize_node( &the_object->Node );
_Chain_Append_unprotected( &information->Inactive, &the_object->Node );
- the_object = _Addresses_Add_offset( the_object, information->size );
+ the_object = _Addresses_Add_offset( the_object, information->object_size );
}
}