/*
splay_tree.c -- splay tree and linked list convenience
- Copyright (C) 2004 Guus Sliepen <guus@tinc-vpn.org>
+ Copyright (C) 2004-2006 Guus Sliepen <guus@tinc-vpn.org>
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
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"
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);
}