From 2b0dca531bc250d02e16d1c418c20aad3aee47c9 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Mon, 20 Apr 2020 16:39:21 +0200 Subject: [PATCH] Small fixes --- src/net/listen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/listen.c b/src/net/listen.c index 0c3d28fc..74a2991e 100644 --- a/src/net/listen.c +++ b/src/net/listen.c @@ -756,8 +756,8 @@ lkt_listen(void) /* Initialize the system. */ RETURN_UNLESS(database_new(&srv.db), "Failed to initialize the memory database", 1); - RETURN_UNLESS(config_detect_file(conf_file, PATH_MAX), "Failed to find a config file", 1); - RETURN_UNLESS(config_new(srv.db, conf_file), "Failed to read configuration file", 1); + RETURN_IF(config_detect_file(conf_file, PATH_MAX), "Failed to find a config file", 1); + RETURN_IF(config_new(srv.db, conf_file), "Failed to read configuration file", 1); /* Finish to initialize. */ RETURN_UNLESS(database_config_get_text(srv.db, "database", "db_path", db_path, PATH_MAX), "Cfg error", 2); -- GitLab