summaryrefslogtreecommitdiff
path: root/src/wins.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-05 01:50:23 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-05 09:27:04 +0200
commit6fb0f6f4c6c5e17b9485fc666823feede35723b9 (patch)
tree2330c32238bf13fe89a3b25cf76f9abbbf433e51 /src/wins.c
parentc4c7c8af5d4180905f1b1401a259ec8ce3c5ac75 (diff)
downloadcalcurse-6fb0f6f4c6c5e17b9485fc666823feede35723b9.zip
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>
Diffstat (limited to 'src/wins.c')
-rw-r--r--src/wins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wins.c b/src/wins.c
index ca5171f..a9e93e0 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -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);
}