From 0b263b0eb7dd05efe44359b9d8172926856badc7 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sun, 21 Feb 2021 10:47:36 +0100 Subject: score: Remove _Objects_Open() Use the type safe _Objects_Open_u32() instead. Return the object identifier to enforce a common usage pattern. --- cpukit/rtems/src/timercreate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cpukit/rtems/src/timercreate.c') diff --git a/cpukit/rtems/src/timercreate.c b/cpukit/rtems/src/timercreate.c index ce143f59f6..a3ece5cc4d 100644 --- a/cpukit/rtems/src/timercreate.c +++ b/cpukit/rtems/src/timercreate.c @@ -209,13 +209,11 @@ rtems_status_code rtems_timer_create( the_timer->the_class = TIMER_DORMANT; _Watchdog_Preinitialize( &the_timer->Ticker, _Per_CPU_Get_snapshot() ); - _Objects_Open( + *id = _Objects_Open_u32( &_Timer_Information, &the_timer->Object, - (Objects_Name) name + name ); - - *id = the_timer->Object.id; _Objects_Allocator_unlock(); return RTEMS_SUCCESSFUL; } -- cgit v1.2.3