diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-06 16:00:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-07 06:31:46 +0200 |
commit | 089e68181e70aa96802f8ebe0acf6af73c02f5ae (patch) | |
tree | ad9615c3af96458cea8d9c1b19645b1724bc9cb5 /cpukit/score/src/objectmp.c | |
parent | score: Fix internal error status number (diff) | |
download | rtems-089e68181e70aa96802f8ebe0acf6af73c02f5ae.tar.bz2 |
score: Replace Objects_Name_or_id_lookup_errors
Replace Objects_Name_or_id_lookup_errors with new Status_Control codes.
Get rid of the _Status_Object_name_errors_to_status lookup table.
Diffstat (limited to 'cpukit/score/src/objectmp.c')
-rw-r--r-- | cpukit/score/src/objectmp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c index b44ef65e94..05b286e067 100644 --- a/cpukit/score/src/objectmp.c +++ b/cpukit/score/src/objectmp.c @@ -293,19 +293,19 @@ void _Objects_MP_Close ( } } -Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search( +Status_Control _Objects_MP_Global_name_search( const Objects_Information *information, Objects_Name the_name, uint32_t nodes_to_search, Objects_Id *the_id ) { - Objects_Name_or_id_lookup_errors status; - Objects_MP_Control *the_global_object; - ISR_lock_Context lock_context; + Status_Control status; + Objects_MP_Control *the_global_object; + ISR_lock_Context lock_context; if ( nodes_to_search > _Objects_Maximum_nodes ) { - return OBJECTS_INVALID_NODE; + return STATUS_INVALID_NODE; } _Objects_MP_Global_acquire( &lock_context ); @@ -336,9 +336,9 @@ Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search( if ( the_global_object != NULL ) { *the_id = the_global_object->id; _Assert( the_global_object->name.name_u32 != 0 ); - status = OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; + status = STATUS_SUCCESSFUL; } else { - status = OBJECTS_INVALID_NAME; + status = STATUS_INVALID_NAME; } _Objects_MP_Global_release( &lock_context ); |