]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Expanded usage of stdbool.h to the whole BIRD
authorMaria Matejka <mq@ucw.cz>
Sun, 15 Oct 2023 10:06:11 +0000 (12:06 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 25 Mar 2024 08:39:58 +0000 (09:39 +0100)
nest/route.h
proto/aggregator/config.Y
proto/bmp/bmp.h
sysdep/config.h
sysdep/unix/alloc.c
sysdep/unix/krt.c

index 12e85006d1e17b1afac570cd2b30568a2e20c655..659783a8b5942c0d7b282065be64809d750487ba 100644 (file)
@@ -655,7 +655,7 @@ ea_set_attr(ea_list **to, struct linpool *pool, uint id, uint flags, uint type,
 }
 
 static inline void
-ea_unset_attr(ea_list **to, struct linpool *pool, _Bool local, uint code)
+ea_unset_attr(ea_list **to, struct linpool *pool, bool local, uint code)
 {
   struct ea_one_attr_list *ea = lp_alloc(pool, sizeof(*ea));
   *ea = (struct ea_one_attr_list) {
index 0eb160cbeb85d17bb2810a78d53e4c58bc4746fb..98d1037bb4b8590291667119f3026763c36f40ea 100644 (file)
@@ -45,7 +45,7 @@ aggregator_proto_item:
     if (AGGREGATOR_CFG->aggr_on)
       cf_error("Only one aggregate on clause allowed");
 
-    _Bool net_present = 0;
+    bool net_present = 0;
     int count = 0;
 
     for (const struct aggr_item_node *item = $3; item; item = item->next) {
index 2d700c25d26f20787915d24c55ec3778d98fe9d2..d69aaafb2da957974d4ecf88e8ff5c6ce61498cd 100644 (file)
@@ -18,8 +18,6 @@
 #include "lib/socket.h"
 #include "proto/bmp/map.h"
 
-#include <stdbool.h>
-
 // Max length of MIB-II description object
 #define MIB_II_STR_LEN 255
 
index 56f3b0d547f396cebd26fcfe6f301f4d2f3c7000..82d0b51d57ebe20b3e6c4d6d4ca41aae87581a2d 100644 (file)
@@ -32,6 +32,7 @@
 
 /* Types */
 
+#include <stdbool.h>
 #include <stdint.h>
 typedef int8_t s8;
 typedef uint8_t u8;
index c8f1c83fa08d19d02a2402d07dbece64f9248ffd..08fc99801b3c4760380e40041b1d20a45a233d97 100644 (file)
@@ -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 {
index 7a078fb9d79f2c5a34e420dbee32bbccf96be29d..0664f4c1dde5f348bf539b6c1fb0ef5c75f53656 100644 (file)
@@ -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)