cvs commit: src/sys/compat/linux linux_ioctl.c
Brooks Davis
brooks at one-eyed-alien.net
Thu Mar 24 11:25:03 PST 2005
On Thu, Mar 24, 2005 at 01:33:53PM -0500, John Baldwin wrote:
> 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.
Ah, intresting. It produces a less informative error, but I guess the
fact that it should work on any C compiler makes up for it. I'll switch
to that.
Thanks,
Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050324/8b20fe15/attachment.bin
More information about the cvs-src
mailing list