summaryrefslogtreecommitdiff
path: root/src/notify.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2015-02-24 13:57:44 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2015-02-24 13:57:47 +0100
commit0145ba12ecb20583adda4e4b03dd5b7cfb15d1f4 (patch)
treea5bb2e6ff27635b7274f97f04b8a7c616a2ebf3b /src/notify.c
parent892d6edccd8d94b24cf4740638fa07c9762650fc (diff)
downloadcalcurse-0145ba12ecb20583adda4e4b03dd5b7cfb15d1f4.zip
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c5
1 files changed, 2 insertions, 3 deletions
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(&notify_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,