diff options
Diffstat (limited to 'minecctl')
-rw-r--r-- | minecctl/misc.c | 10 | ||||
-rw-r--r-- | minecctl/misc.h | 2 | ||||
-rw-r--r-- | minecctl/server.c | 2 |
3 files changed, 1 insertions, 13 deletions
diff --git a/minecctl/misc.c b/minecctl/misc.c index c8e1d05..6562b14 100644 --- a/minecctl/misc.c +++ b/minecctl/misc.c @@ -195,16 +195,6 @@ char *ask_password() return password; } -void free_password(char **password) -{ - if (!password || !*password) - return; - - explicit_bzero(*password, strlen(*password)); - xfree(*password); - *password = NULL; -} - void __debug(_unused_ enum debug_lvl lvl, const char *fmt, ...) { va_list ap; diff --git a/minecctl/misc.h b/minecctl/misc.h index 0c97ad4..f29422c 100644 --- a/minecctl/misc.h +++ b/minecctl/misc.h @@ -15,6 +15,4 @@ int connect_any(struct list_head *addrs, bool may_fail); char *ask_password(); -void free_password(char **password); - #endif diff --git a/minecctl/server.c b/minecctl/server.c index 582c4fd..e7d9e7b 100644 --- a/minecctl/server.c +++ b/minecctl/server.c @@ -114,7 +114,7 @@ void server_load_all_known(struct cfg *cfg) struct server *server; char *suffix; - if (!is_valid_server_config_filename(dent, NULL)) + if (!config_valid_server_filename(dent, NULL)) continue; server = server_new(dent->d_name); |