From 0145ba12ecb20583adda4e4b03dd5b7cfb15d1f4 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 24 Feb 2015 13:57:44 +0100 Subject: Use time_t instead of long in several places Start converting some variables and return values to store times from long to time_t. Signed-off-by: Lukas Fleischer --- src/recur.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/recur.c') diff --git a/src/recur.c b/src/recur.c index bda899d..667ecdf 100644 --- a/src/recur.c +++ b/src/recur.c @@ -610,7 +610,7 @@ unsigned recur_item_find_occurrence(long item_start, long item_dur, llist_t * item_exc, int rpt_type, int rpt_freq, long rpt_until, long day_start, - unsigned *occurrence) + time_t *occurrence) { struct date start_date; long diff, span; @@ -696,7 +696,7 @@ recur_item_find_occurrence(long item_start, long item_dur, unsigned recur_apoint_find_occurrence(struct recur_apoint *rapt, long day_start, - unsigned *occurrence) + time_t *occurrence) { return recur_item_find_occurrence(rapt->start, rapt->dur, &rapt->exc, rapt->rpt->type, @@ -707,7 +707,7 @@ recur_apoint_find_occurrence(struct recur_apoint *rapt, long day_start, unsigned recur_event_find_occurrence(struct recur_event *rev, long day_start, - unsigned *occurrence) + time_t *occurrence) { return recur_item_find_occurrence(rev->day, DAYINSEC, &rev->exc, rev->rpt->type, rev->rpt->freq, @@ -841,7 +841,7 @@ struct notify_app *recur_apoint_check_next(struct notify_app *app, long start, long day) { llist_item_t *i; - unsigned real_recur_start_time; + time_t real_recur_start_time; LLIST_TS_LOCK(&recur_alist_p); LLIST_TS_FIND_FOREACH(&recur_alist_p, &app->time, -- cgit v1.2.3-54-g00ecf