projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tapreader socket should be bound to localhost only.
[tinc]
/
lib
/
splay_tree.c
diff --git
a/lib/splay_tree.c
b/lib/splay_tree.c
index
0a2577d
..
62e9e31
100644
(file)
--- a/
lib/splay_tree.c
+++ b/
lib/splay_tree.c
@@
-1,6
+1,6
@@
/*
splay_tree.c -- splay tree and linked list convenience
/*
splay_tree.c -- splay tree and linked list convenience
- Copyright (C) 2004-200
5
Guus Sliepen <guus@tinc-vpn.org>
+ Copyright (C) 2004-200
6
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
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
@@
-534,7
+534,7
@@
void splay_delete(splay_tree_t *tree, void *data) {
void splay_delete_tree(splay_tree_t *tree) {
splay_node_t *node, *next;
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);
}
next = node->next;
splay_free_node(tree, node);
}