DragonFly BSD
DragonFly commits List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/net


From: Christopher Vance <christopher@xxxxxx>
Date: Thu, 16 Dec 2004 14:34:27 +1100

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]