mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
config: open_config(): remove unused argument ‘conf’
This commit is contained in:
parent
d8f0e701b5
commit
11f2c85acf
1 changed files with 2 additions and 2 deletions
4
config.c
4
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue