Miscellaneous small code cleanups

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2012-04-06 23:21:18 +02:00
parent d0b0ed3c20
commit 1c442e6aef
8 changed files with 24 additions and 29 deletions

View File

@@ -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 */