X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Fsplay_tree.c;h=97abecc23a2f4c8fc5ea9dc12344af879b08b2d4;hp=f08632e668f9090882614abf3be9a9b98382e279;hb=0e6856b1379e278aa5ed116d0911851339a6064c;hpb=bded1b74cc23c60e7319ed9e7465413b94a7914e diff --git a/lib/splay_tree.c b/lib/splay_tree.c index f08632e6..97abecc2 100644 --- a/lib/splay_tree.c +++ b/lib/splay_tree.c @@ -1,6 +1,6 @@ /* splay_tree.c -- splay tree and linked list convenience - Copyright (C) 2004 Guus Sliepen + Copyright (C) 2004-2006 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,8 +15,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - $Id: splay_tree.c 1374 2004-03-21 14:21:22Z guus $ */ #include "system.h" @@ -534,7 +532,7 @@ void splay_delete(splay_tree_t *tree, void *data) { void splay_delete_tree(splay_tree_t *tree) { splay_node_t *node, *next; - for(node = tree->root; node; node = next) { + for(node = tree->head; node; node = next) { next = node->next; splay_free_node(tree, node); }