diff options
Diffstat (limited to 'minecctl')
-rw-r--r-- | minecctl/minecctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/minecctl/minecctl.c b/minecctl/minecctl.c index d601980..1dc2a85 100644 --- a/minecctl/minecctl.c +++ b/minecctl/minecctl.c @@ -225,9 +225,8 @@ parse_config(char *buf, const char *filename, *password = NULL; list_init(addrs); - /* FIXME: filename argument is superfluous */ - if (!config_parse_header(filename, SERVER_CFG_HEADER, &buf)) - die("Unable to parse %s: invalid header", filename); + if (!config_parse_header(SERVER_CFG_HEADER, &buf)) + die("Unable to parse %s: invalid/missing header", filename); /* FIXME: this will cause superflous DNS lookups of other cfg entries */ while (true) { |