Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:28 -0000
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345991 - in head/sys: kern sys
Message-ID:  <201904062038.x36KciZW001348@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Sat Apr  6 20:38:44 2019
New Revision: 345991
URL: https://svnweb.freebsd.org/changeset/base/345991

Log:
  kern/subr_pctrie: Convert old-style boolean_t to plain "bool"
  
  No functional change.

Modified:
  head/sys/kern/subr_pctrie.c
  head/sys/sys/pctrie.h

Modified: head/sys/kern/subr_pctrie.c
==============================================================================
--- head/sys/kern/subr_pctrie.c	Sat Apr  6 18:17:18 2019	(r345990)
+++ head/sys/kern/subr_pctrie.c	Sat Apr  6 20:38:44 2019	(r345991)
@@ -166,7 +166,7 @@ pctrie_setroot(struct pctrie *ptree, struct pctrie_nod
 /*
  * 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);
 }
 
 /*

Modified: head/sys/sys/pctrie.h
==============================================================================
--- head/sys/sys/pctrie.h	Sat Apr  6 18:17:18 2019	(r345990)
+++ head/sys/sys/pctrie.h	Sat Apr  6 20:38:44 2019	(r345991)
@@ -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)
 {
 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904062038.x36KciZW001348>