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/notify.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/notify.c') diff --git a/src/notify.c b/src/notify.c index 970306e..78c8484 100644 --- a/src/notify.c +++ b/src/notify.c @@ -499,9 +499,8 @@ void notify_check_added(char *mesg, long start, char state) /* Check if the newly repeated appointment is to be notified. */ void notify_check_repeated(struct recur_apoint *i) { - unsigned real_app_time; + time_t current_time, real_app_time; int update_notify = 0; - time_t current_time; current_time = time(NULL); pthread_mutex_lock(¬ify_app.mutex); @@ -541,7 +540,7 @@ int notify_same_item(long time) int notify_same_recur_item(struct recur_apoint *i) { int same = 0; - unsigned item_start = 0; + time_t item_start = 0; recur_item_find_occurrence(i->start, i->dur, &i->exc, i->rpt->type, i->rpt->freq, i->rpt->until, -- cgit v1.2.3-54-g00ecf