Compare pointers to "NULL" instead of "0".

"bad_zero.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-04-05 01:50:23 +02:00
parent c4c7c8af5d
commit 6fb0f6f4c6
12 changed files with 93 additions and 93 deletions

View File

@@ -266,7 +266,7 @@ wins_init (void)
void
wins_scrollwin_init (struct scrollwin *sw)
{
EXIT_IF (sw == 0, "null pointer");
EXIT_IF (sw == NULL, "null pointer");
sw->win.p = newwin (sw->win.h, sw->win.w, sw->win.y, sw->win.x);
sw->pad.p = newpad (sw->pad.h, sw->pad.w);
sw->first_visible_line = 0;
@@ -277,7 +277,7 @@ wins_scrollwin_init (struct scrollwin *sw)
void
wins_scrollwin_delete (struct scrollwin *sw)
{
EXIT_IF (sw == 0, "null pointer");
EXIT_IF (sw == NULL, "null pointer");
delwin(sw->win.p);
delwin(sw->pad.p);
}