diff options
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r-- | cpukit/rtems/src/rtemsobjectsetname.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/rtems/src/rtemsobjectsetname.c b/cpukit/rtems/src/rtemsobjectsetname.c index 86cb4dac83..71be850069 100644 --- a/cpukit/rtems/src/rtemsobjectsetname.c +++ b/cpukit/rtems/src/rtemsobjectsetname.c @@ -37,6 +37,7 @@ rtems_status_code rtems_object_set_name( Objects_Information *information; Objects_Control *the_object; Objects_Id tmpId; + Status_Control status; if ( !name ) return RTEMS_INVALID_ADDRESS; @@ -55,7 +56,7 @@ rtems_status_code rtems_object_set_name( return RTEMS_INVALID_ID; } - _Objects_Set_name( information, the_object, name ); + status = _Objects_Set_name( information, the_object, name ); _Objects_Allocator_unlock(); - return RTEMS_SUCCESSFUL; + return STATUS_GET_CLASSIC( status ); } |