From 47988fb37bf1f5aac757c92e3ac8be6f0d027d04 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 Sep 2009 14:54:29 +0000 Subject: 2009-09-11 Joel Sherrill * score/include/rtems/score/object.h, score/inline/rtems/score/object.inl, score/src/objectgetnameasstring.c, score/src/objectidtoname.c, score/src/objectinitializeinformation.c, score/src/objectnamespaceremove.c, score/src/objectnametoidstring.c, score/src/objectsetname.c, score/src/thread.c, score/src/threadcreateidle.c: Disable object string name support when POSIX is not enabled. --- cpukit/score/src/objectnamespaceremove.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'cpukit/score/src/objectnamespaceremove.c') diff --git a/cpukit/score/src/objectnamespaceremove.c b/cpukit/score/src/objectnamespaceremove.c index df54d854ac..5e97a6c34a 100644 --- a/cpukit/score/src/objectnamespaceremove.c +++ b/cpukit/score/src/objectnamespaceremove.c @@ -22,15 +22,19 @@ void _Objects_Namespace_remove( Objects_Control *the_object ) { - /* - * If this is a string format name, then free the memory. - */ - if ( information->is_string && the_object->name.name_p ) - _Workspace_Free( (void *)the_object->name.name_p ); + #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) + /* + * If this is a string format name, then free the memory. + */ + if ( information->is_string && the_object->name.name_p ) + _Workspace_Free( (void *)the_object->name.name_p ); + #endif /* * Clear out either format. */ - the_object->name.name_p = NULL; + #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) + the_object->name.name_p = NULL; + #endif the_object->name.name_u32 = 0; } -- cgit v1.2.3