diff options
-rw-r--r-- | main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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"); |