From 3afaf3d8f7617beed427c96e544ab177fabadaa4 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Wed, 24 Jun 2020 00:16:51 +0200 Subject: Simplify config_parse_header --- minecctl/minecctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'minecctl') 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) { -- cgit v1.2.3