From 2d48456ef55717224065d21c6c3b837c816a69c1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 21 Aug 2015 05:24:17 +0200 Subject: rbheap: Drop direction from _RBTree_Iterate() --- testsuites/libtests/rbheap01/init.c | 2 -- testsuites/sptests/sprbtree01/init.c | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'testsuites') diff --git a/testsuites/libtests/rbheap01/init.c b/testsuites/libtests/rbheap01/init.c index 6fd86db385..11a9f543de 100644 --- a/testsuites/libtests/rbheap01/init.c +++ b/testsuites/libtests/rbheap01/init.c @@ -75,7 +75,6 @@ typedef struct { static bool chunk_visitor( const RBTree_Node *node, - RBTree_Direction dir, void *visitor_arg ) { @@ -175,7 +174,6 @@ static void test_chunk_tree( _RBTree_Iterate( &control->chunk_tree, - RBT_RIGHT, chunk_visitor, &context ); diff --git a/testsuites/sptests/sprbtree01/init.c b/testsuites/sptests/sprbtree01/init.c index 102b6c43a6..c24d6483bb 100644 --- a/testsuites/sptests/sprbtree01/init.c +++ b/testsuites/sptests/sprbtree01/init.c @@ -814,7 +814,6 @@ typedef struct { static bool visit_nodes( const RBTree_Node *node, - RBTree_Direction dir, void *visitor_arg ) { @@ -1655,7 +1654,7 @@ static void random_ops( size_t n, bool unique ) v = simple_random( v ); } - _RBTree_Iterate( &tree, RBT_RIGHT, visit_nodes, &ctx ); + _RBTree_Iterate( &tree, visit_nodes, &ctx ); rtems_test_assert( ctx.current == ctx.count ); } @@ -2071,7 +2070,7 @@ rtems_task Init( rtems_task_argument ignored ) node_array[i].key = numbers[i]; rb_insert_unique( &rbtree1, &node_array[i].Node ); - _RBTree_Iterate( &rbtree1, RBT_RIGHT, visit_nodes, &ctx ); + _RBTree_Iterate( &rbtree1, visit_nodes, &ctx ); rtems_test_assert( ctx.current == ctx.count ); if (!rb_assert(rtems_rbtree_root(&rbtree1)) ) @@ -2098,7 +2097,7 @@ rtems_task Init( rtems_task_argument ignored ) if ( id < 19 ) { visitor_context ctx = { 0, 20 - id - 1, test_remove_trees[ id ] }; - _RBTree_Iterate( &rbtree1, RBT_RIGHT, visit_nodes, &ctx ); + _RBTree_Iterate( &rbtree1, visit_nodes, &ctx ); rtems_test_assert( ctx.current == ctx.count ); } } -- cgit v1.2.3