summaryrefslogtreecommitdiff
path: root/src/event.c
diff options
context:
space:
mode:
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 */