summaryrefslogtreecommitdiff
path: root/src/notify.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-17 17:34:54 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-22 02:47:36 +0200
commitfb5f9d0155d63451bd16d7d50204da90ff604949 (patch)
treed076a0c380864bcab416b121fbfb103fa4e12b9c /src/notify.c
parent0ad23c7a8f795f4fffa4ff0b3fd07d42422390cf (diff)
downloadcalcurse-fb5f9d0155d63451bd16d7d50204da90ff604949.zip
Use generic lists for recurring item exceptions.
Rename "days" structure to "excp" which seems to be a better name here. Use generic linked lists of excp structures instead of using the "days" structure which again contains a linked list implementation. Do some cleanups and invocation fixes. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notify.c b/src/notify.c
index 4ae4dd5..3e5d3c7 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -506,7 +506,7 @@ notify_check_repeated (struct recur_apoint *i)
current_time = time (NULL);
pthread_mutex_lock (&notify_app.mutex);
- if ((real_app_time = recur_item_inday (i->start, i->exc, i->rpt->type,
+ if ((real_app_time = recur_item_inday (i->start, &i->exc, i->rpt->type,
i->rpt->freq, i->rpt->until,
get_today ()) > current_time))
{
@@ -551,7 +551,7 @@ notify_same_recur_item (struct recur_apoint *i)
int same = 0;
long item_start = 0;
- item_start = recur_item_inday (i->start, i->exc, i->rpt->type,
+ item_start = recur_item_inday (i->start, &i->exc, i->rpt->type,
i->rpt->freq, i->rpt->until, get_today ());
pthread_mutex_lock (&notify_app.mutex);
if (notify_app.got_app && item_start == notify_app.time)