aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/calobj.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-21 06:13:36 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-21 06:13:36 +0800
commite9a7215277ccb59d126cd0981d148744068ed148 (patch)
tree16ce2125e88d3cd92a10f7eded7c4ae958455a69 /calendar/pcs/calobj.c
parent3acbe7a46f8c3af807ed56b997e2995e45a2fafe (diff)
downloadgsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.gz
gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.zst
gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.zip
Fix compiler warnings - Federico
svn path=/trunk/; revision=170
Diffstat (limited to 'calendar/pcs/calobj.c')
-rw-r--r--calendar/pcs/calobj.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c
index b57f660a7b..60cb2f29d5 100644
--- a/calendar/pcs/calobj.c
+++ b/calendar/pcs/calobj.c
@@ -928,7 +928,7 @@ generate (iCalObject *ico, time_t reference, calendarfn cb, void *closure)
s_t = mktime (&dt_start);
if (ico->exdate && is_date_in_list (ico->exdate, &dt_start))
- return;
+ return 1;
e_t = mktime (&dt_end);
@@ -1111,9 +1111,12 @@ static int
duration_callback (iCalObject *ico, time_t start, time_t end, void *closure)
{
int *count = closure;
+ struct tm *tm;
- if (ico->exdate && is_date_in_list (ico->exdate, &start))
- return;
+ tm = localtime (&start);
+
+ if (ico->exdate && is_date_in_list (ico->exdate, tm))
+ return 1;
(*count)++;
if (ico->recur->duration == *count) {