summaryrefslogtreecommitdiffstats
path: root/cpukit/score/macros/rtems/score
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-11 15:42:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-11 15:42:14 +0000
commitc43b34cf348b5a4d3ec0e2ba88b422070a52c0ee (patch)
treea76bf48c481fa2cda5fc82ff3380d066dd58c112 /cpukit/score/macros/rtems/score
parentswapped increment of _ISR_Nest_level and _Thread_Dispatch_disable_level (diff)
downloadrtems-c43b34cf348b5a4d3ec0e2ba88b422070a52c0ee.tar.bz2
modified _Chain_Insert_unprotected to have the form required to be used
as the sole statement in an if or else statement
Diffstat (limited to 'cpukit/score/macros/rtems/score')
-rw-r--r--cpukit/score/macros/rtems/score/chain.inl4
1 files changed, 2 insertions, 2 deletions
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
*