/*
splay_tree.c -- splay tree and linked list convenience
- Copyright (C) 2004-2005 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
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);
}