X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Favl_tree.c;h=0d122bf6919fad8d78084e32c62a96b91167cc0b;hp=22d7ff5d887931a9413e713e1c2534181bdcb1c4;hb=ba25e899d0f13f84a0300240b8f67df818dcafa6;hpb=5eb72b73d3cd842e71e525413a46a55644ac3583 diff --git a/src/avl_tree.c b/src/avl_tree.c index 22d7ff5d..0d122bf6 100644 --- a/src/avl_tree.c +++ b/src/avl_tree.c @@ -2,7 +2,7 @@ avl_tree.c -- avl_ tree and linked list convenience Copyright (C) 1998 Michael H. Buselli 2000-2005 Ivo Timmermans, - 2000-2006 Guus Sliepen + 2000-2015 Guus Sliepen 2000-2005 Wessel Dankers This program is free software; you can redistribute it and/or modify @@ -26,7 +26,7 @@ the code. Mail me if you found a bug. Cleaned up and incorporated some of the ideas from the red-black tree - library for inclusion into tinc (http://www.tinc-vpn.org/) by + library for inclusion into tinc (https://www.tinc-vpn.org/) by Guus Sliepen . */ @@ -123,8 +123,6 @@ static void avl_rebalance(avl_tree_t *tree, avl_node_t *node) avl_node_t *parent; avl_node_t **superparent; - parent = node; - while(node) { parent = node->parent;