aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-28 19:48:53 +0100
committerMax Kellermann <max@duempel.org>2008-12-28 19:48:53 +0100
commit5d2c59e3f11d10f5c5ed6a4c357a7e51fc5de76e (patch)
tree8a08c6499f9badba1805ae71d3c1f54be04e7cc0 /src
parent2c5885e9c72655380d1b378f64f2e417a230c2cc (diff)
downloadmpd-5d2c59e3f11d10f5c5ed6a4c357a7e51fc5de76e.tar.gz
mpd-5d2c59e3f11d10f5c5ed6a4c357a7e51fc5de76e.tar.xz
mpd-5d2c59e3f11d10f5c5ed6a4c357a7e51fc5de76e.zip
log: use the GLogLevelFlags type
Declare log_threshold as GLogLevelFlags.
Diffstat (limited to '')
-rw-r--r--src/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log.c b/src/log.c
index 95a1fc5af..76293decf 100644
--- a/src/log.c
+++ b/src/log.c
@@ -38,7 +38,7 @@
#define LOG_DATE_BUF_SIZE 16
#define LOG_DATE_LEN (LOG_DATE_BUF_SIZE - 1)
-static unsigned int log_threshold = G_LOG_LEVEL_MESSAGE;
+static GLogLevelFlags log_threshold = G_LOG_LEVEL_MESSAGE;
static const char *log_charset;
@@ -70,7 +70,7 @@ mpd_log_func(const gchar *log_domain,
{
char *converted;
- if (log_level > (int)log_threshold)
+ if (log_level > log_threshold)
return;
if (log_charset != NULL) {
@@ -156,7 +156,7 @@ void setup_log_output(bool use_stdout)
#define log_func(func,level) \
G_GNUC_PRINTF(1, 2) void func(const char *fmt, ...) \
{ \
- if (level <= (int)log_threshold) { \
+ if (level <= log_threshold) { \
va_list args; \
va_start(args, fmt); \
g_logv(NULL, level, fmt, args); \