Messages in this thread | | | Subject | Re: [PATCH] Use NULL instead of integer 0 in security/selinux/ | From | Miles Bader <> | Date | Thu, 08 Jul 2004 12:43:14 +0900 |
| |
"David S. Miller" <davem@redhat.com> writes: >> What's wrong with using 0 as the NULL pointer? In contexts where >> a plain 0 is unsafe, NULL is usually unsafe as well. > > It's a general sparse cleanup people are doing across the entire tree. > It's the "proper" way to do pointer comparisons post-K&R.
But 0 in such a context isn't an integer, it's a pointer...
If sparse really warns about such things, the warning seems wrong.
-Miles -- ((lambda (x) (list x x)) (lambda (x) (list x x))) - 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/
| |