diff options
author | Maria Matejka <mq@ucw.cz> | 2023-10-15 12:06:11 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2024-03-25 09:39:58 +0100 |
commit | b95dc8f29f18eb177f91fdc4bf0716fac9b15366 (patch) | |
tree | 7291ca8136e7cf95cdf7b6cd7634508d31d0fc77 /sysdep | |
parent | 0b684a43bd7ce4a32c9cd7754b88286bcd1815bb (diff) |
Expanded usage of stdbool.h to the whole BIRD
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/config.h | 1 | ||||
-rw-r--r-- | sysdep/unix/alloc.c | 2 | ||||
-rw-r--r-- | sysdep/unix/krt.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/sysdep/config.h b/sysdep/config.h index 56f3b0d5..82d0b51d 100644 --- a/sysdep/config.h +++ b/sysdep/config.h @@ -32,6 +32,7 @@ /* Types */ +#include <stdbool.h> #include <stdint.h> typedef int8_t s8; typedef uint8_t u8; diff --git a/sysdep/unix/alloc.c b/sysdep/unix/alloc.c index c8f1c83f..08fc9980 100644 --- a/sysdep/unix/alloc.c +++ b/sysdep/unix/alloc.c @@ -35,7 +35,7 @@ long page_size = 0; STATIC_ASSERT(KEEP_PAGES_MAIN_MIN * 4 < KEEP_PAGES_MAIN_MAX); -static _Bool use_fake = 0; +static bool use_fake = 0; #if DEBUGGING struct free_page { diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index 7a078fb9..0664f4c1 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -805,7 +805,7 @@ krt_got_route_async(struct krt_proto *p, rte *e, int new, s8 src) static timer *krt_scan_all_timer; static int krt_scan_all_count; -static _Bool krt_scan_all_tables; +static bool krt_scan_all_tables; static void krt_scan_all(timer *t UNUSED) |