summaryrefslogtreecommitdiff
path: root/src/event.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/event.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/event.c')
-rw-r--r--src/event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.c b/src/event.c
index fc527c6..a3c4750 100644
--- a/src/event.c
+++ b/src/event.c
@@ -96,7 +96,7 @@ event_new (char *mesg, char *note, long day, int id)
i = &eventlist;
for (;;)
{
- if (*i == 0 || (*i)->day > day)
+ if (*i == NULL || (*i)->day > day)
{
o->next = *i;
*i = o;
@@ -195,7 +195,7 @@ event_delete_bynum (long start, unsigned num, enum eraseflg flag)
n = 0;
iptr = &eventlist;
- for (i = eventlist; i != 0; i = i->next)
+ for (i = eventlist; i != NULL; i = i->next)
{
if (event_inday (i, start))
{