summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/partcreate.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-21 10:47:36 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-24 09:22:36 +0100
commit0b263b0eb7dd05efe44359b9d8172926856badc7 (patch)
tree0fcb6c0924561f08c7854a5fbecc51f79bfca22a /cpukit/rtems/src/partcreate.c
parentbuild: Fix format in wscript (diff)
downloadrtems-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.c5
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(