X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Fsplay_tree.c;h=3a792e8badb6bfc0ea669fd5a497a7bfdc62ad15;hp=f6e5a4bc71d250fa37e01ee627ea647610fcf142;hb=21d0e24f1a523ad5fc23b3cddef78a1ae9585ea9;hpb=de78d79db84c486afcc353884ec1770866beb653 diff --git a/lib/splay_tree.c b/lib/splay_tree.c index f6e5a4bc..3a792e8b 100644 --- a/lib/splay_tree.c +++ b/lib/splay_tree.c @@ -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); }