Replace typedef for bool with stdbool.h
authorJens Steube <jens.steube@gmail.com>
Tue, 12 Jan 2016 17:56:26 +0000 (18:56 +0100)
committerJens Steube <jens.steube@gmail.com>
Tue, 12 Jan 2016 17:56:26 +0000 (18:56 +0100)
include/common.h

index 3c4a1cb..f9ae5e9 100644 (file)
@@ -15,6 +15,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdbool.h>
 #include <string.h>
 #include <errno.h>
 #include <getopt.h>
@@ -93,8 +94,6 @@ void log_out (FILE *fp, const char *fmt, ...);
 void log_info (const char *fmt, ...);
 void log_error (const char *fmt, ...);
 
-typedef int bool; // this is ugly but ADL requires the bool datatype
-
 typedef uint32_t uint; // we should rename to u32, sooner or later, for consistency
 typedef uint64_t u64;