From 515189910deae61ea5b3fed004a61d04c5a970c7 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Tue, 16 Jun 2020 23:56:53 +0200 Subject: Some more debugmsg cleanups --- main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 0620476..f480253 100644 --- a/main.c +++ b/main.c @@ -23,6 +23,9 @@ #include "systemd.h" #include "igmp.h" +#define DEFAULT_HOMEDIR_PATH "/home/david/intest" +#define DEFAULT_MAIN_CONFIG_FILE_PATH "./mcproxy.conf" + unsigned debug_mask = DBG_ERROR | DBG_INFO; bool exiting = false; @@ -65,8 +68,6 @@ cfg_free(struct uring_task *task) /* The cfg struct is free:d in main() */ } -#define DEFAULT_MAIN_CONFIG_FILE_PATH "./mcproxy.conf" - enum mcfg_keys { MCFG_KEY_INVALID = 0, MCFG_KEY_IGMP, @@ -281,9 +282,9 @@ cfg_init(int argc, char **argv) die("invalid arguments"); if (!cfg->homedir) - cfg->homedir = "/home/david/intest"; + cfg->homedir = DEFAULT_HOMEDIR_PATH; - printf("Homedir is %s\n", cfg->homedir); + verbose("Homedir is %s\n", cfg->homedir); if (chdir(cfg->homedir)) perrordie("chdir"); -- cgit v1.2.3