diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-21 06:13:36 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-21 06:13:36 +0800 |
commit | e9a7215277ccb59d126cd0981d148744068ed148 (patch) | |
tree | 16ce2125e88d3cd92a10f7eded7c4ae958455a69 /calendar/calobj.c | |
parent | 3acbe7a46f8c3af807ed56b997e2995e45a2fafe (diff) | |
download | gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.gz gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.bz2 gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.lz gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.xz gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.zst gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.zip |
Fix compiler warnings - Federico
svn path=/trunk/; revision=170
Diffstat (limited to 'calendar/calobj.c')
-rw-r--r-- | calendar/calobj.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/calobj.c b/calendar/calobj.c index b57f660a7b..60cb2f29d5 100644 --- a/calendar/calobj.c +++ b/calendar/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) { |