diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-06 23:21:18 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-06 23:23:58 +0200 |
commit | 1c442e6aefd8855cdeec776b0e4e604edf585884 (patch) | |
tree | 18b7a62118ce65473d3bd192b2c86a1954f42178 /src/event.c | |
parent | d0b0ed3c202c3212a65ba628026a53d9663fc2d7 (diff) | |
download | calcurse-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.c | 6 |
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 */ |