X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_setup.c;h=f0e1cdfe948bdf1a75524c8c477a287b1a441b6c;hb=c385d115331845e8a844322e66571d74d833e822;hp=3d05ca9c8fd533deddc0599640b84df0e1879281;hpb=02e32cf61ee25d3d0e2fc1fef5cd98cbfa1c9a2f;p=tinc diff --git a/src/net_setup.c b/src/net_setup.c index 3d05ca9c..f0e1cdfe 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -81,7 +81,7 @@ bool read_rsa_public_key(connection_t *c) { return result; } -bool read_rsa_private_key() { +static bool read_rsa_private_key(void) { FILE *fp; char *fname; char *n, *d; @@ -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); @@ -220,7 +220,7 @@ void load_all_subnets(void) { /* Configure node_t myself and set up the local sockets (listen only) */ -bool setup_myself(void) { +static bool setup_myself(void) { config_t *cfg; subnet_t *subnet; char *name, *hostname, *mode, *afname, *cipher, *digest; @@ -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); }