summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-16 23:56:53 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-16 23:56:53 +0200
commit515189910deae61ea5b3fed004a61d04c5a970c7 (patch)
tree59df40063a40b4a1fa93ca47fd52f68761964c07
parent31b37c09e4fe1e360e1f4d136d37e79d8af5ce91 (diff)
Some more debugmsg cleanups
-rw-r--r--main.c9
1 files 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");