summaryrefslogtreecommitdiff
path: root/lib/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/debug.c b/lib/debug.c
index 1b75e63d..dd5ade86 100644
--- a/lib/debug.c
+++ b/lib/debug.c
@@ -23,6 +23,7 @@
# include "config.h"
#endif
+#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
@@ -31,13 +32,13 @@
#include "manconfig.h"
-int debug_level = 0;
+bool debug_level = false;
void init_debug (void)
{
const char *man_debug = getenv ("MAN_DEBUG");
if (man_debug && STREQ (man_debug, "1"))
- debug_level = 1;
+ debug_level = true;
}
static void vdebug (const char *message, va_list args)