cvs commit: src/sys/net

Christopher Vance christopher at nu.org
Wed Dec 15 19:34:50 PST 2004


On Thu, Dec 16, 2004 at 12:30:31PM +0900, YONETANI Tomokazu wrote:
<stdbool.h> has an ugly side-effect of defining a macro
 #define bool	_Bool
Required by C99

and this breaks the following place in src/usr.sbin/mrouted/kern.c:

 void
 k_hdr_include(int bool)
So I'd rather suggest rolling your own boolean_t in radix.h(provided
you can't move boolean_t out of `#ifdef _KERNEL' conditional
in /sys/sys/types.h) for !_KERNEL case.
Why not just fix kern.c not to use bool as a parameter name?
It'll have to be done one of these years.
--
Christopher Vance




More information about the Commits mailing list