NULL vs 0 vs 0L bikeshed time

Bruce Evans bde at zeta.org.au
Mon Mar 1 21:39:28 PST 2004


On Sun, 29 Feb 2004, Mark Murray wrote:

> ...
> I'd like to commit the following patch. It makes sure that for C
> and the kernel, NULL is a ((void *)0), and for C++, NULL is either
> (0L) or 0, with __LP64__ used to define the difference.
>
> The intent is to catch use of NULL where 0 or (0L) should be used.
> It generates extra warnings (I promise to fix these).

This may involve fixing hundreds if not thousands of ports.

Bruce


More information about the freebsd-current mailing list