diff --git a/src/utils/error.c b/src/utils/error.c
index f4ff99a8def3d847dcabb4143f50192f3e7450c2..f940be6d232b05eb5eceff1b08f6aa13d62642ac 100644 (file)
--- a/src/utils/error.c
+++ b/src/utils/error.c
#include <pthread.h>
#include <stdarg.h>
+#include <stdbool.h>
#include <stdio.h>
-#include <string.h>
-
#include <stdlib.h>
+#include <string.h>
/*
* private data types
typedef struct {
int prio;
sdb_strbuf_t *msg;
- _Bool logged;
+ bool logged;
} sdb_error_ctx_t;
#define SDB_ERROR_INIT { -1, NULL, 1 }
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;