0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Expanded usage of stdbool.h to the whole BIRD

This commit is contained in:
Maria Matejka 2023-10-15 12:06:11 +02:00
parent 0b684a43bd
commit b95dc8f29f
6 changed files with 5 additions and 6 deletions

View File

@ -655,7 +655,7 @@ ea_set_attr(ea_list **to, struct linpool *pool, uint id, uint flags, uint type,
} }
static inline void 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)); struct ea_one_attr_list *ea = lp_alloc(pool, sizeof(*ea));
*ea = (struct ea_one_attr_list) { *ea = (struct ea_one_attr_list) {

View File

@ -45,7 +45,7 @@ aggregator_proto_item:
if (AGGREGATOR_CFG->aggr_on) if (AGGREGATOR_CFG->aggr_on)
cf_error("Only one aggregate on clause allowed"); cf_error("Only one aggregate on clause allowed");
_Bool net_present = 0; bool net_present = 0;
int count = 0; int count = 0;
for (const struct aggr_item_node *item = $3; item; item = item->next) { for (const struct aggr_item_node *item = $3; item; item = item->next) {

View File

@ -18,8 +18,6 @@
#include "lib/socket.h" #include "lib/socket.h"
#include "proto/bmp/map.h" #include "proto/bmp/map.h"
#include <stdbool.h>
// Max length of MIB-II description object // Max length of MIB-II description object
#define MIB_II_STR_LEN 255 #define MIB_II_STR_LEN 255

View File

@ -32,6 +32,7 @@
/* Types */ /* Types */
#include <stdbool.h>
#include <stdint.h> #include <stdint.h>
typedef int8_t s8; typedef int8_t s8;
typedef uint8_t u8; typedef uint8_t u8;

View File

@ -35,7 +35,7 @@ long page_size = 0;
STATIC_ASSERT(KEEP_PAGES_MAIN_MIN * 4 < KEEP_PAGES_MAIN_MAX); STATIC_ASSERT(KEEP_PAGES_MAIN_MIN * 4 < KEEP_PAGES_MAIN_MAX);
static _Bool use_fake = 0; static bool use_fake = 0;
#if DEBUGGING #if DEBUGGING
struct free_page { struct free_page {

View 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 timer *krt_scan_all_timer;
static int krt_scan_all_count; static int krt_scan_all_count;
static _Bool krt_scan_all_tables; static bool krt_scan_all_tables;
static void static void
krt_scan_all(timer *t UNUSED) krt_scan_all(timer *t UNUSED)