Messages in this thread | | | Date | Sat, 10 Jul 2004 11:47:40 +1000 | Subject | Re: [PATCH] Use NULL instead of integer 0 in security/selinux/ | From | Herbert Xu <> |
| |
On Fri, Jul 09, 2004 at 09:43:18PM -0400, Kyle Moffett wrote: > > most clear? These are all "logically" correct, for the most part, but > as humans we have certain readability standards.
Nope, B is undefined.
> int some_function(int a, void *b, char *c, unsigned char d, int e); > > A) int res = some_function(0,0,0,0,0); > B) int res = some_function(NULL,NULL,NULL,NULL,NULL); > C) int res = some_function(0,NULL,NULL,'\0',0); -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |