X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconnection.c;h=0211845b89521aa6a077a20a4a9b3bd83559f7a4;hp=e7ea9b2aec91d93d55a673b359f545a1ef49e85d;hb=ea415ccc1690d6e5864a7500977b181e5c8faafe;hpb=64771f73ebbff04262defcde59263e98f89f0fa1 diff --git a/src/connection.c b/src/connection.c index e7ea9b2a..0211845b 100644 --- a/src/connection.c +++ b/src/connection.c @@ -29,7 +29,7 @@ #include "xalloc.h" avl_tree_t *connection_tree; /* Meta connections */ -connection_t *broadcast; +connection_t *everyone; static int connection_compare(const connection_t *a, const connection_t *b) { return a < b ? -1 : a == b ? 0 : 1; @@ -37,14 +37,14 @@ static int connection_compare(const connection_t *a, const connection_t *b) { void init_connections(void) { connection_tree = avl_alloc_tree((avl_compare_t) connection_compare, (avl_action_t) free_connection); - broadcast = new_connection(); - broadcast->name = xstrdup("everyone"); - broadcast->hostname = xstrdup("BROADCAST"); + everyone = new_connection(); + everyone->name = xstrdup("everyone"); + everyone->hostname = xstrdup("BROADCAST"); } void exit_connections(void) { avl_delete_tree(connection_tree); - free_connection(broadcast); + free_connection(everyone); } connection_t *new_connection(void) {