From cf63cbef2bcb6a1f21ded439cbb09842581b9020 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 11 Jun 2003 19:39:02 +0000 Subject: [PATCH] Fixes from Wessel Danker's libavl. --- lib/avl_tree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/avl_tree.c b/lib/avl_tree.c index d35936e6..7bacc20e 100644 --- a/lib/avl_tree.c +++ b/lib/avl_tree.c @@ -29,7 +29,7 @@ library for inclusion into tinc (http://tinc.nl.linux.org/) by Guus Sliepen . - $Id: avl_tree.c,v 1.1.2.12 2002/09/10 09:40:15 guus Exp $ + $Id: avl_tree.c,v 1.1.2.13 2003/06/11 19:39:02 guus Exp $ */ #include @@ -519,7 +519,7 @@ void avl_insert_before(avl_tree_t *tree, avl_node_t *before, before->prev = node; before->left = node; - avl_rebalance(tree, before->parent); + avl_rebalance(tree, before); } void avl_insert_after(avl_tree_t *tree, avl_node_t *after, avl_node_t *node) @@ -549,7 +549,7 @@ void avl_insert_after(avl_tree_t *tree, avl_node_t *after, avl_node_t *node) after->next = node; after->right = node; - avl_rebalance(tree, after->parent); + avl_rebalance(tree, after); } avl_node_t *avl_unlink(avl_tree_t *tree, void *data) -- 2.39.5