diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-16 23:56:53 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-16 23:56:53 +0200 |
commit | 515189910deae61ea5b3fed004a61d04c5a970c7 (patch) | |
tree | 59df40063a40b4a1fa93ca47fd52f68761964c07 | |
parent | 31b37c09e4fe1e360e1f4d136d37e79d8af5ce91 (diff) |
Some more debugmsg cleanups
-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"); |