From 1749a562db8cc7a7a4529ba0b046a3439fa15190 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Thu, 13 Dec 2012 11:11:00 +0100 Subject: Moved from boolean to int. --- debug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debug.c b/debug.c index f3d5c5e..8b48204 100644 --- a/debug.c +++ b/debug.c @@ -205,7 +205,7 @@ static int dbg_create_header(char *hdr, size_t size) t.tm_sec); } -static int dbg_output_fd(int fd, const char *msg, bool withdate) +static int dbg_output_fd(int fd, const char *msg, int withdate) { int s; @@ -265,15 +265,15 @@ int __debug(const char *func, const int line, } if(dbg_config.flags & DBG_FLAG_OUTPUT_TO_STDERR) { - dbg_output_fd(STDERR_FILENO, buf, true); + dbg_output_fd(STDERR_FILENO, buf, 1); } if(dbg_config.flags & DBG_FLAG_OUTPUT_TO_FD) { - dbg_output_fd(dbg_config.fd, buf, true); + dbg_output_fd(dbg_config.fd, buf, 1); } if(dbg_config.flags & DBG_FLAG_OUTPUT_TO_FILE) { - dbg_output_fd(dbg_config.file_fd, buf, true); + dbg_output_fd(dbg_config.file_fd, buf, 1); } #ifdef WITH_DBG_SYSLOG -- cgit v1.2.3