Remove autotools configs
[tinc] / src / keys.c
index c857fb6..5f93a5a 100644 (file)
@@ -21,7 +21,7 @@ bool disable_old_keys(const char *filename, const char *what) {
                return false;
        }
 
-       int result = snprintf(tmpfile, sizeof(tmpfile), "%s.tmp", filename);
+       size_t result = snprintf(tmpfile, sizeof(tmpfile), "%s.tmp", filename);
 
        if(result < sizeof(tmpfile)) {
                struct stat st = {.st_mode = 0600};
@@ -171,7 +171,7 @@ bool read_ecdsa_public_key(ecdsa_t **ecdsa, splay_tree_t **config_tree, const ch
        char *p;
 
        if(!*config_tree) {
-               init_configuration(config_tree);
+               *config_tree = create_configuration();
 
                if(!read_host_config(*config_tree, name, true)) {
                        return false;