aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-05 18:39:10 +0100
committerMax Kellermann <max@duempel.org>2008-11-05 18:39:10 +0100
commit787c6f5e18a6855b3c16a9957edef8da109d686b (patch)
tree4d69b27b5f3132f321df9894a262e17469a80f73 /src/log.c
parent4c967a6ba26057ffb4fd9822a7b77f8af64f734f (diff)
downloadmpd-787c6f5e18a6855b3c16a9957edef8da109d686b.tar.gz
mpd-787c6f5e18a6855b3c16a9957edef8da109d686b.tar.xz
mpd-787c6f5e18a6855b3c16a9957edef8da109d686b.zip
log: use bool
Use the bool data type for flags.
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/log.c b/src/log.c
index da2361533..feae78bfc 100644
--- a/src/log.c
+++ b/src/log.c
@@ -40,7 +40,7 @@
static unsigned int log_threshold = G_LOG_LEVEL_INFO;
-static int stdout_mode = 1;
+static bool stdout_mode = true;
static int out_fd = -1;
static int err_fd = -1;
static const char *out_filename;
@@ -77,7 +77,7 @@ mpd_log_func(G_GNUC_UNUSED const gchar *log_domain,
message);
}
-void initLog(const int verbose)
+void initLog(bool verbose)
{
ConfigParam *param;
@@ -104,7 +104,7 @@ void initLog(const int verbose)
}
}
-void open_log_files(const int use_stdout)
+void open_log_files(bool use_stdout)
{
mode_t prev;
ConfigParam *param;
@@ -130,12 +130,12 @@ void open_log_files(const int use_stdout)
umask(prev);
}
-void setup_log_output(const int use_stdout)
+void setup_log_output(bool use_stdout)
{
fflush(NULL);
if (!use_stdout) {
redirect_logs();
- stdout_mode = 0;
+ stdout_mode = false;
}
}