summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectidtoname.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-11 14:54:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-11 14:54:29 +0000
commit47988fb37bf1f5aac757c92e3ac8be6f0d027d04 (patch)
tree869cfe18d218535f112630df116c62bb773e3b7d /cpukit/score/src/objectidtoname.c
parent2009-09-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-47988fb37bf1f5aac757c92e3ac8be6f0d027d04.tar.bz2
2009-09-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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.
Diffstat (limited to 'cpukit/score/src/objectidtoname.c')
-rw-r--r--cpukit/score/src/objectidtoname.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/src/objectidtoname.c b/cpukit/score/src/objectidtoname.c
index de34dc5fa1..7504d3dc3c 100644
--- a/cpukit/score/src/objectidtoname.c
+++ b/cpukit/score/src/objectidtoname.c
@@ -66,8 +66,10 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
if ( !information )
return OBJECTS_INVALID_ID;
- if ( information->is_string )
- return OBJECTS_INVALID_ID;
+ #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
+ if ( information->is_string )
+ return OBJECTS_INVALID_ID;
+ #endif
the_object = _Objects_Get( information, tmpId, &ignored_location );
if ( !the_object )