From 04f9afae18903add2c8a485a6cbc55b9b2b563d9 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Sat, 6 Apr 2019 20:38:44 +0000 Subject: [PATCH] kern/subr_pctrie: Convert old-style boolean_t to plain "bool" No functional change. --- sys/kern/subr_pctrie.c | 6 +++--- sys/sys/pctrie.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/subr_pctrie.c b/sys/kern/subr_pctrie.c index c5f2c06e6e5..ece2c1d75cf 100644 --- a/sys/kern/subr_pctrie.c +++ b/sys/kern/subr_pctrie.c @@ -166,7 +166,7 @@ pctrie_setroot(struct pctrie *ptree, struct pctrie_node *node) /* * Returns TRUE if the specified node is a leaf and FALSE otherwise. */ -static __inline boolean_t +static __inline bool pctrie_isleaf(struct pctrie_node *node) { @@ -218,7 +218,7 @@ pctrie_keydiff(uint64_t index1, uint64_t index2) * Returns TRUE if it can be determined that key does not belong to the * specified node. Otherwise, returns FALSE. */ -static __inline boolean_t +static __inline bool pctrie_keybarr(struct pctrie_node *node, uint64_t idx) { @@ -226,7 +226,7 @@ pctrie_keybarr(struct pctrie_node *node, uint64_t idx) idx = pctrie_trimkey(idx, node->pn_clev + 1); return (idx != node->pn_owner); } - return (FALSE); + return (false); } /* diff --git a/sys/sys/pctrie.h b/sys/sys/pctrie.h index 88d5d2583e4..6e9528f24a3 100644 --- a/sys/sys/pctrie.h +++ b/sys/sys/pctrie.h @@ -128,7 +128,7 @@ pctrie_init(struct pctrie *ptree) ptree->pt_root = 0; } -static __inline boolean_t +static __inline bool pctrie_is_empty(struct pctrie *ptree) {