diff options
author | 2019-05-17 12:33:25 +0300 | |
---|---|---|
committer | 2019-05-17 12:33:25 +0300 | |
commit | 9c0b33eb35d93b1ac3db644dd148979afbed79a5 (patch) | |
tree | 98d8842dc81e4234ce23fbae80ba88198e816d82 /src/daemon | |
parent | d26745dcc31dfb5f1da8c531972f2458439a7cd2 (diff) | |
parent | 8928d3f345458705611c20ac5315c849369e0142 (diff) | |
download | usurpation-9c0b33eb35d93b1ac3db644dd148979afbed79a5.tar.gz usurpation-9c0b33eb35d93b1ac3db644dd148979afbed79a5.tar.bz2 usurpation-9c0b33eb35d93b1ac3db644dd148979afbed79a5.zip |
Merge updated branch '29-verbosity-levels'
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/settings.c | 4 | ||||
-rw-r--r-- | src/daemon/settings_private.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/daemon/settings.c b/src/daemon/settings.c index bac1c3b..4392300 100644 --- a/src/daemon/settings.c +++ b/src/daemon/settings.c @@ -30,7 +30,7 @@ void settings_init(void) { unset_flag(flag_daemonize); settings.port = 6996; - settings.verbosity = USURP_VERBOSITY; + settings.verboselevel = USURP_VERBOSITY; } int setting_detach(void) @@ -40,7 +40,7 @@ int setting_detach(void) int setting_verbose(void) { - return settings.verbosity; + return settings.verboselevel; } unsigned short int setting_port(void) diff --git a/src/daemon/settings_private.h b/src/daemon/settings_private.h index 7839cb9..ee49145 100644 --- a/src/daemon/settings_private.h +++ b/src/daemon/settings_private.h @@ -23,7 +23,7 @@ #define USURPATION_SETTINGS_PRIVATE_H #ifndef USURP_VERBOSITY - #define USURP_VERBOSITY 1 + #define USURP_VERBOSITY ERR #endif static const unsigned int flag_daemonize = 1 << 0; /* 1st bit */ @@ -31,7 +31,7 @@ static const unsigned int flag_daemonize = 1 << 0; /* 1st bit */ static struct settings { unsigned int flags; unsigned short int port; - int verbosity; + enum verbosity verboselevel; } settings; int test_flag(unsigned int flag); |