From: Guus Sliepen Date: Wed, 11 Jun 2003 19:39:02 +0000 (+0000) Subject: Fixes from Wessel Danker's libavl. X-Git-Tag: release-1.0~83 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=cf63cbef2bcb6a1f21ded439cbb09842581b9020;p=tinc Fixes from Wessel Danker's libavl. --- 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)