diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-02 19:25:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-02 19:25:59 +0000 |
commit | 13c4f853e6655e6b1c759255bea4f63c77806cdc (patch) | |
tree | 6347f845f2761b7ea2863c44c672e83f40177c9e /cpukit/score/src/rbtree.c | |
parent | 2011-08-02 Ricardo Aguirre <el.mastin@ymail.com> (diff) | |
download | rtems-13c4f853e6655e6b1c759255bea4f63c77806cdc.tar.bz2 |
2011-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1877/cpukit
* libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/memfile.c,
sapi/inline/rtems/rbtree.inl, score/include/rtems/score/rbtree.h,
score/inline/rtems/score/rbtree.inl, score/src/rbtree.c,
score/src/rbtreefind.c, score/src/rbtreeinsert.c: Add comparison
function for RBTrees.
Diffstat (limited to 'cpukit/score/src/rbtree.c')
-rw-r--r-- | cpukit/score/src/rbtree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/rbtree.c b/cpukit/score/src/rbtree.c index 0b52989927..eb3af773cb 100644 --- a/cpukit/score/src/rbtree.c +++ b/cpukit/score/src/rbtree.c @@ -33,6 +33,7 @@ void _RBTree_Initialize( RBTree_Control *the_rbtree, + void *compare_function, void *starting_address, size_t number_nodes, size_t node_size @@ -45,7 +46,7 @@ void _RBTree_Initialize( if (!the_rbtree) return; /* could do sanity checks here */ - _RBTree_Initialize_empty(the_rbtree); + _RBTree_Initialize_empty(the_rbtree, compare_function); count = number_nodes; next = starting_address; |