X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_setup.c;h=f0e1cdfe948bdf1a75524c8c477a287b1a441b6c;hb=8dfa072733feab737cabf69f000c70657719826a;hp=9d20fd577e5116ec13946372172281c95f68cbf2;hpb=d772289f6d6adfb8932658b533349d43f08ec326;p=tinc diff --git a/src/net_setup.c b/src/net_setup.c index 9d20fd57..f0e1cdfe 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -143,7 +143,7 @@ static void keyexpire_handler(int fd, short events, void *data) { regenerate_key(); } -void regenerate_key() { +void regenerate_key(void) { if(timeout_initialized(&keyexpire_event)) { ifdebug(STATUS) logger(LOG_INFO, "Expiring symmetric keys"); event_del(&keyexpire_event); @@ -608,7 +608,7 @@ void close_network_connections(void) { for(node = connection_tree->head; node; node = next) { next = node->next; c = node->data; - c->outgoing = false; + c->outgoing = NULL; terminate_connection(c, false); }