NULL vs 0 vs 0L bikeshed time

Dag-ErlingSmørgrav des at des.no
Mon Mar 1 08:42:37 PST 2004


Mark Murray <mark at grondar.org> writes:
> I'd like to commit the following patch. It makes sure that for C
> and the kernel, NULL is a ((void *)0)

This is not correct, because it makes NULL unusable for function
pointers; you can assign 0 to a function pointer, but not (void *)0.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-current mailing list