Don't use 0 as null pointer constant, part 1

Use NULL instead of 0, for clarity.  Except in pointer comparisons;
leave that to the next two commits.
This commit is contained in:
Markus Armbruster 2009-03-22 18:50:43 +01:00
parent a2ed975ec2
commit 615681ce16
51 changed files with 107 additions and 100 deletions

View file

@ -288,6 +288,10 @@ Do not use increment operators to set a variable to logical true! It
obfuscates the purpose, and narrow variables could even overflow.
Just assign 1. A lot of cleanup remains to be done there.
Null pointer constant
Please use NULL for clarity, not just 0.
Type casts
Casting pointers to and from `void *' clutters the code and serves no