From 11f2c85acf84b39cee2dae32b7a926a1e9a28968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 16 Mar 2021 09:54:32 +0100 Subject: [PATCH] =?UTF-8?q?config:=20open=5Fconfig():=20remove=20unused=20?= =?UTF-8?q?argument=20=E2=80=98conf=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index 9babe8eb..ab0236bb 100644 --- a/config.c +++ b/config.c @@ -279,7 +279,7 @@ try_open_file(path_components_t *components, const char *name) } static struct config_file -open_config(struct config *conf) +open_config(void) { struct config_file ret = {.path = NULL, .fd = -1}; @@ -2316,7 +2316,7 @@ config_load(struct config *conf, const char *conf_path, conf_file.path = xstrdup(conf_path); conf_file.fd = fd; } else { - conf_file = open_config(conf); + conf_file = open_config(); if (conf_file.fd < 0) { LOG_AND_NOTIFY_ERR("no configuration found, using defaults"); ret = !errors_are_fatal;