Re: [PATCH] Use NULL instead of integer 0 in security/selinux/

From: Herbert Xu
Date: Thu Jul 08 2004 - 06:20:52 EST


On Wed, Jul 07, 2004 at 10:22:32PM -0700, Linus Torvalds wrote:
>
> I'm sorry that you are such a K&R-C bigot that you don't like type
> checking. But the kernel DOES like type checking, and the kernel is not
> K&R C. The kernel uses strict ANSI, and in fact, is _more_ strict than
> ANSI C is in many many ways.

Well it's your project so you get to set the coding style.

But it is ironic that you call people who use 0 in a pointer context
K&R-C bigots. One of the principal reason why NULL exists at all
is in fact the lack of prototypes in K&R...
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/