diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-21 10:47:36 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-24 09:22:36 +0100 |
commit | 0b263b0eb7dd05efe44359b9d8172926856badc7 (patch) | |
tree | 0fcb6c0924561f08c7854a5fbecc51f79bfca22a /cpukit/rtems/src/partcreate.c | |
parent | build: Fix format in wscript (diff) | |
download | rtems-0b263b0eb7dd05efe44359b9d8172926856badc7.tar.bz2 |
score: Remove _Objects_Open()
Use the type safe _Objects_Open_u32() instead. Return the object
identifier to enforce a common usage pattern.
Diffstat (limited to 'cpukit/rtems/src/partcreate.c')
-rw-r--r-- | cpukit/rtems/src/partcreate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c index 205a31620e..012a416a1a 100644 --- a/cpukit/rtems/src/partcreate.c +++ b/cpukit/rtems/src/partcreate.c @@ -138,13 +138,12 @@ rtems_status_code rtems_partition_create( attribute_set ); - _Objects_Open( + *id = _Objects_Open_u32( &_Partition_Information, &the_partition->Object, - (Objects_Name) name + name ); - *id = the_partition->Object.id; #if defined(RTEMS_MULTIPROCESSING) if ( _Attributes_Is_global( attribute_set ) ) _Partition_MP_Send_process_packet( |