]> git.meshlink.io Git - meshlink/blobdiff - src/conf.c
do_outgoing_connection() may delete a failed connection, and the structure
[meshlink] / src / conf.c
index bf8183f7d9b8e1fe4eb10f8f4d870f0e2bb4b735..593cd0c29f705c67fcd815efee2b55f2097a6111 100644 (file)
@@ -188,7 +188,7 @@ bool get_config_address(const config_t *cfg, struct addrinfo **result) {
 }
 
 bool get_config_subnet(const config_t *cfg, subnet_t ** result) {
-       subnet_t subnet = {0};
+       subnet_t subnet = {NULL};
 
        if(!cfg)
                return false;
@@ -368,7 +368,7 @@ void read_config_options(splay_tree_t *config_tree, const char *prefix) {
        }
 }
 
-bool read_server_config() {
+bool read_server_config(void) {
        char *fname;
        bool x;