aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-16 08:54:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-16 08:54:32 +0000
commit11f2c85acf84b39cee2dae32b7a926a1e9a28968 (patch)
tree0a6d75da571277244a886598a98d49269a555595
parentMerge branch 'term-print-assume-col-can-be-incremented' (diff)
config: open_config(): remove unused argument ‘conf’
-rw-r--r--config.c4
1 files 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;