summaryrefslogtreecommitdiff
path: root/src/event.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-04-06 23:21:18 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-04-06 23:23:58 +0200
commit1c442e6aefd8855cdeec776b0e4e604edf585884 (patch)
tree18b7a62118ce65473d3bd192b2c86a1954f42178 /src/event.c
parentd0b0ed3c202c3212a65ba628026a53d9663fc2d7 (diff)
downloadcalcurse-1c442e6aefd8855cdeec776b0e4e604edf585884.zip
Miscellaneous small code cleanups
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/event.c b/src/event.c
index fbfa1d2..c27c078 100644
--- a/src/event.c
+++ b/src/event.c
@@ -115,11 +115,7 @@ event_new (char *mesg, char *note, long day, int id)
unsigned
event_inday (struct event *i, long start)
{
- if (i->day < start + DAYINSEC && i->day >= start)
- {
- return 1;
- }
- return 0;
+ return (i->day < start + DAYINSEC && i->day >= start);
}
/* Write to file the event in user-friendly format */