diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-01-20 08:16:15 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-01-20 08:16:15 +0000 |
commit | 61380a5451e089ae5a725348ab6bfd007b5b82f8 (patch) | |
tree | 9b6ab282e330ef00a88223cd0fbd27ab9a774bd5 | |
parent | 2011-01-19 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-61380a5451e089ae5a725348ab6bfd007b5b82f8.tar.bz2 |
2011-01-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/show_bdbuf.c, score/src/objectmp.c: Avoid chain API
violations.
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libblock/src/show_bdbuf.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/objectmp.c | 12 |
3 files changed, 12 insertions, 7 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 05f0c18d4a..8e9207d345 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2011-01-20 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * libblock/src/show_bdbuf.c, score/src/objectmp.c: Avoid chain API + violations. + 2011-01-17 Joel Sherrill <joel.sherrill@oarcorp.com> * libmisc/shell/main_dd.c: Make symbol unique to avoid conflict with diff --git a/cpukit/libblock/src/show_bdbuf.c b/cpukit/libblock/src/show_bdbuf.c index fe8e4d23c9..74ff9922aa 100644 --- a/cpukit/libblock/src/show_bdbuf.c +++ b/cpukit/libblock/src/show_bdbuf.c @@ -554,7 +554,7 @@ rtems_status_code rtems_show_bdbuf_print_wait_chain */ if (rc == RTEMS_SUCCESSFUL) { the_chain_head = &(the_bdbuf->transfer_sema.Wait_queue.Queues.Fifo); - the_chain_node = the_chain_head->first; + the_chain_node = _Chain_First(the_chain_head); } /* * walk through thread chain diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c index 916bb8169d..5564b52f1f 100644 --- a/cpukit/score/src/objectmp.c +++ b/cpukit/score/src/objectmp.c @@ -152,9 +152,9 @@ void _Objects_MP_Close ( the_chain = &information->global_table[ _Objects_Get_node( the_id ) ]; - for ( the_node = the_chain->first ; + for ( the_node = _Chain_First( the_chain ) ; !_Chain_Is_tail( the_chain, the_node ) ; - the_node = the_node->next ) { + the_node = _Chain_Next( the_node ) ) { the_object = (Objects_MP_Control *) the_node; @@ -224,9 +224,9 @@ Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search ( if ( !_Objects_Is_local_node( node_index ) ) { the_chain = &information->global_table[ node_index ]; - for ( the_node = the_chain->first ; + for ( the_node = _Chain_First( the_chain ) ; !_Chain_Is_tail( the_chain, the_node ) ; - the_node = the_node->next ) { + the_node = _Chain_Next( the_node ) ) { the_object = (Objects_MP_Control *) the_node; @@ -285,9 +285,9 @@ void _Objects_MP_Is_remote ( the_chain = &information->global_table[ node ]; - for ( the_node = the_chain->first ; + for ( the_node = _Chain_First( the_chain ) ; !_Chain_Is_tail( the_chain, the_node ) ; - the_node = the_node->next ) { + the_node = _Chain_Next( the_node ) ) { the_global_object = (Objects_MP_Control *) the_node; |