summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/rbtree.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-07-21 18:08:07 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-07-22 12:30:53 +0200
commit6b0a7efc77bd0dec7acdd84b692e266f5183b2b6 (patch)
tree19d1b30410bc2f17d8c04a06dd9da0cd056981f2 /cpukit/score/src/rbtree.c
parentdoc: Update console driver documentation (diff)
downloadrtems-6b0a7efc77bd0dec7acdd84b692e266f5183b2b6.tar.bz2
rbtree: Format
Diffstat (limited to 'cpukit/score/src/rbtree.c')
-rw-r--r--cpukit/score/src/rbtree.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/score/src/rbtree.c b/cpukit/score/src/rbtree.c
index 5e8520da5e..d5f758c6f9 100644
--- a/cpukit/score/src/rbtree.c
+++ b/cpukit/score/src/rbtree.c
@@ -31,17 +31,19 @@ void _RBTree_Initialize(
bool is_unique
)
{
- size_t count;
+ size_t count;
RBTree_Node *next;
/* TODO: Error message? */
- if (!the_rbtree) return;
+ if ( !the_rbtree )
+ return;
/* could do sanity checks here */
_RBTree_Initialize_empty( the_rbtree );
count = number_nodes;
- next = starting_address;
+ next = starting_address;
+
while ( count-- ) {
_RBTree_Insert( the_rbtree, next, compare, is_unique );
next = (RBTree_Node *) _Addresses_Add_offset( next, node_size );