Code

Use stdbool.h's bool type instead of _Bool.
[sysdb.git] / src / core / time.c
index 5d34e18b4fed99a8769ed9f17d226e6d9432db5d..d0ed0b8dd9917d11596fa54da2f65071026c968f 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <time.h>
 
+#include <stdbool.h>
 #include <stdio.h>
 #include <string.h>
 
@@ -98,7 +99,7 @@ sdb_strfinterval(char *s, size_t len, sdb_time_t interval)
        size_t i;
 
        /* special case the optional fractional part for seconds */
-       _Bool have_seconds = 0;
+       bool have_seconds = 0;
 
        struct {
                sdb_time_t  interval;