Messages in this thread | | | Date | Fri, 9 Jul 2004 01:25:43 +1000 | Subject | Re: [OT] NULL versus 0 (Re: [PATCH] Use NULL instead of integer 0 in security/selinux/) | From | Herbert Xu <> |
| |
On Thu, Jul 08, 2004 at 03:57:48PM +0300, Kari Hurtta wrote: > > As far I know it does not work on C when it is > used as argument of function and function > have not prototype or function's prototype have ...
In that case NULL is wrong anyway since not all pointers are equivalent. You need to cast 0 or NULL to the exact pointer type required by that function. -- 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/
| |