From e9a7215277ccb59d126cd0981d148744068ed148 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Mon, 20 Apr 1998 22:13:36 +0000 Subject: Fix compiler warnings - Federico svn path=/trunk/; revision=170 --- calendar/pcs/calobj.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'calendar/pcs') 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) { -- cgit