From c43b34cf348b5a4d3ec0e2ba88b422070a52c0ee Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Mar 1997 15:42:14 +0000 Subject: modified _Chain_Insert_unprotected to have the form required to be used as the sole statement in an if or else statement --- cpukit/score/macros/rtems/score/chain.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/macros') diff --git a/cpukit/score/macros/rtems/score/chain.inl b/cpukit/score/macros/rtems/score/chain.inl index 0f09499f1d..f43d0b574f 100644 --- a/cpukit/score/macros/rtems/score/chain.inl +++ b/cpukit/score/macros/rtems/score/chain.inl @@ -154,7 +154,7 @@ */ #define _Chain_Insert_unprotected( _after_node, _the_node ) \ -{ \ +do { \ Chain_Node *_before_node; \ \ (_the_node)->previous = (_after_node); \ @@ -162,7 +162,7 @@ (_after_node)->next = (_the_node); \ (_the_node)->next = _before_node; \ _before_node->previous = (_the_node); \ -} +} while (0) /*PAGE * -- cgit v1.2.3