summaryrefslogtreecommitdiff
path: root/src/event.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-11-02 19:30:54 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2011-11-02 19:38:38 +0100
commit6f01c7af972dbf4698c63b707b225469b9405e47 (patch)
tree9a48f43a43992da80dcdd6415941cc72c7f6878d /src/event.c
parentce3f0ce76f59216ff82ecd79e180a5c59d3d60d0 (diff)
downloadcalcurse-6f01c7af972dbf4698c63b707b225469b9405e47.zip
Remove parentheses from return statements
No reason to use "return (x);" here. Refer to the GNU coding guidelines for details. Created using following semantic patch: @@ expression expr; @@ - return (expr); + return expr; Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event.c b/src/event.c
index f0435e9..64bc3eb 100644
--- a/src/event.c
+++ b/src/event.c
@@ -91,7 +91,7 @@ event_llist_free (void)
static int
event_cmp_day (struct event *a, struct event *b)
{
- return (a->day < b->day ? -1 : (a->day == b->day ? 0 : 1));
+ return a->day < b->day ? -1 : (a->day == b->day ? 0 : 1);
}
/* Create a new event */
@@ -117,9 +117,9 @@ event_inday (struct event *i, long start)
{
if (i->day < start + DAYINSEC && i->day >= start)
{
- return (1);
+ return 1;
}
- return (0);
+ return 0;
}
/* Write to file the event in user-friendly format */