summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/macros/rtems/score/chain.inl4
-rw-r--r--cpukit/score/src/objectidtoname.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/score/macros/rtems/score/chain.inl b/cpukit/score/macros/rtems/score/chain.inl
index 1694130464..9366636e49 100644
--- a/cpukit/score/macros/rtems/score/chain.inl
+++ b/cpukit/score/macros/rtems/score/chain.inl
@@ -46,7 +46,7 @@
*/
#define _Chain_Head( _the_chain ) \
- ((Chain_Node *) ((void *)(_the_chain)))
+ ((Chain_Node *) (_the_chain))
/*PAGE
*
@@ -54,7 +54,7 @@
*/
#define _Chain_Tail( _the_chain ) \
- ((Chain_Node *) ((void *)&(_the_chain)->permanent_null))
+ ((Chain_Node *) &(_the_chain)->permanent_null)
/*PAGE
*
diff --git a/cpukit/score/src/objectidtoname.c b/cpukit/score/src/objectidtoname.c
index 1677dac4b2..90f3e84292 100644
--- a/cpukit/score/src/objectidtoname.c
+++ b/cpukit/score/src/objectidtoname.c
@@ -40,7 +40,6 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
unsigned32 the_class;
Objects_Information *information;
Objects_Control *the_object = (Objects_Control *) 0;
- Objects_Locations ignored_location;
if ( !name )
return OBJECTS_INVALID_NAME;
@@ -58,7 +57,7 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
if ( information->is_string )
return OBJECTS_INVALID_ID;
- the_object = _Objects_Get( information, id, &ignored_location );
+ the_object = _Objects_Get( information, id, OBJECTS_SEARCH_LOCAL_NODE );
if (!the_object)
return OBJECTS_INVALID_ID;