Code

Use stdbool.h's bool type instead of _Bool.
[sysdb.git] / src / utils / error.c
index f4ff99a8def3d847dcabb4143f50192f3e7450c2..f940be6d232b05eb5eceff1b08f6aa13d62642ac 100644 (file)
 #include <pthread.h>
 
 #include <stdarg.h>
+#include <stdbool.h>
 #include <stdio.h>
-#include <string.h>
-
 #include <stdlib.h>
+#include <string.h>
 
 /*
  * private data types
@@ -47,7 +47,7 @@
 typedef struct {
        int   prio;
        sdb_strbuf_t *msg;
-       _Bool logged;
+       bool logged;
 } sdb_error_ctx_t;
 #define SDB_ERROR_INIT { -1, NULL, 1 }
 
@@ -58,7 +58,7 @@ typedef struct {
 static sdb_error_ctx_t default_error_ctx = SDB_ERROR_INIT;
 
 static pthread_key_t error_ctx_key;
-static _Bool         error_ctx_key_initialized = 0;
+static bool          error_ctx_key_initialized = 0;
 
 static int (*logger)(int prio, const char *msg) = NULL;