From 19e0f08e2b2defec25f65f65d73de9cdc7844138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulius=20Ratkevi=C4=8Dius?= Date: Tue, 14 May 2019 15:23:54 +0300 Subject: Implemented enumerator for verbosity levels. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Solves ticket #30 Signed-off-by: Paulius Ratkevičius --- src/daemon/settings_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon/settings_private.h') diff --git a/src/daemon/settings_private.h b/src/daemon/settings_private.h index 7839cb9..133cf51 100644 --- a/src/daemon/settings_private.h +++ b/src/daemon/settings_private.h @@ -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); -- cgit v1.2.3 From 8928d3f345458705611c20ac5315c849369e0142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulius=20Ratkevi=C4=8Dius?= Date: Tue, 14 May 2019 15:30:35 +0300 Subject: Fixed some small issues with enumerator. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Solves ticket #30 Signed-off-by: Paulius Ratkevičius --- src/daemon/settings_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon/settings_private.h') diff --git a/src/daemon/settings_private.h b/src/daemon/settings_private.h index 133cf51..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 */ -- cgit v1.2.3