]> tinc-vpn.org Git - tinc/blobdiff - src/autoconnect.c
Use splay trees inside node_t directly.
[tinc] / src / autoconnect.c
index a5f433cf1b79323e19d8c0632a7ad88d45cd5c35..4279cd37e1acd769a6284e218af6fce2fa1bb5fa 100644 (file)
@@ -114,7 +114,7 @@ static void drop_superfluous_outgoing_connection() {
        int count = 0;
 
        for list_each(connection_t, c, &connection_list) {
-               if(!c->edge || !c->outgoing || !c->node || c->node->edge_tree->count < 2) {
+               if(!c->edge || !c->outgoing || !c->node || c->node->edge_tree.count < 2) {
                        continue;
                }
 
@@ -128,7 +128,7 @@ static void drop_superfluous_outgoing_connection() {
        int r = rand() % count;
 
        for list_each(connection_t, c, &connection_list) {
-               if(!c->edge || !c->outgoing || !c->node || c->node->edge_tree->count < 2) {
+               if(!c->edge || !c->outgoing || !c->node || c->node->edge_tree.count < 2) {
                        continue;
                }