summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-12-13 11:11:00 +0100
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-12-13 11:11:00 +0100
commit1749a562db8cc7a7a4529ba0b046a3439fa15190 (patch)
tree8808c347eb96c6bd02a3cec15e75cefc039f7453 /debug.c
parent84cb79efbb1080861e7c630d3ac4fed12342e5af (diff)
Moved from boolean to int.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c8
1 files 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