summaryrefslogtreecommitdiff
path: root/minecctl
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-24 00:16:51 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-24 00:16:51 +0200
commit3afaf3d8f7617beed427c96e544ab177fabadaa4 (patch)
tree2e21acbbd074029da9a51e667ecc38fbcedeabf8 /minecctl
parent460b10553ac898232bfc5444e335dfa938690d1b (diff)
Simplify config_parse_header
Diffstat (limited to 'minecctl')
-rw-r--r--minecctl/minecctl.c5
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) {