cvs commit: src/sys/compat/linux linux_ioctl.c
John Baldwin
jhb at FreeBSD.org
Thu Mar 24 11:05:49 PST 2005
On Thursday 24 March 2005 12:51 pm, Brooks Davis wrote:
> brooks 2005-03-24 17:51:15 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/compat/linux linux_ioctl.c
> Log:
> Compile errors are way more useful then panics later.
>
> Replace a KASSERT of LINUX_IFNAMSIZ == IFNAMSIZ with a preprocessor
> check and #error message. This will prevent nasty suprises if users
> change IFNAMSIZ without updating the linux code appropriatly.
There's a CTASSERT() macro that you can use for compile time assertions.
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the cvs-all
mailing list