diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-24 00:16:51 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-24 00:16:51 +0200 |
commit | 3afaf3d8f7617beed427c96e544ab177fabadaa4 (patch) | |
tree | 2e21acbbd074029da9a51e667ecc38fbcedeabf8 /minecctl | |
parent | 460b10553ac898232bfc5444e335dfa938690d1b (diff) |
Simplify config_parse_header
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) { |