X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Fsplay_tree.c;h=3a792e8badb6bfc0ea669fd5a497a7bfdc62ad15;hp=0a2577d63be17f5704ac93f56c9e55c38b9dbac8;hb=17a33dfd95b1a29e90db76414eb9622df9632320;hpb=df3220a1549f992cbf4a9b6e67c1e67b69896c7d diff --git a/lib/splay_tree.c b/lib/splay_tree.c index 0a2577d6..3a792e8b 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-2005 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 @@ -12,11 +12,9 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - 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 $ + 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #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); }