summaryrefslogtreecommitdiff
path: root/cpukit/score/src/objectmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/objectmp.c')
-rw-r--r--cpukit/score/src/objectmp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c
index 987b86a968..74d55305a9 100644
--- a/cpukit/score/src/objectmp.c
+++ b/cpukit/score/src/objectmp.c
@@ -284,10 +284,10 @@ void _Objects_MP_Close (
}
Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search(
- Objects_Information *information,
- Objects_Name the_name,
- uint32_t nodes_to_search,
- Objects_Id *the_id
+ const Objects_Information *information,
+ Objects_Name the_name,
+ uint32_t nodes_to_search,
+ Objects_Id *the_id
)
{
Objects_Name_or_id_lookup_errors status;
@@ -325,6 +325,7 @@ 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;
} else {
status = OBJECTS_INVALID_NAME;