aboutsummaryrefslogtreecommitdiffstats
path: root/src/apoint.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-07-01 17:54:33 +0000
committerFrederic Culot <calcurse@culot.org>2007-07-01 17:54:33 +0000
commit10a6d6d570110e7721fb4ca9f77376c1c027a0c7 (patch)
tree8165c87ed633c78ce094fc25002907ac81f8f4c1 /src/apoint.c
parent7093cbefb7c979e99b662ad2b1544c5d1c1d517a (diff)
downloadcalcurse-10a6d6d570110e7721fb4ca9f77376c1c027a0c7.tar.gz
calcurse-10a6d6d570110e7721fb4ca9f77376c1c027a0c7.zip
apoint_switch_notify() prototype updated to take into account date_t type
Diffstat (limited to 'src/apoint.c')
-rwxr-xr-xsrc/apoint.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/apoint.c b/src/apoint.c
index 7889937..388126a 100755
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -1,4 +1,4 @@
-/* $calcurse: apoint.c,v 1.10 2007/04/04 19:35:09 culot Exp $ */
+/* $calcurse: apoint.c,v 1.11 2007/07/01 17:54:33 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -39,6 +39,7 @@
#include "utils.h"
#include "notify.h"
#include "recur.h"
+#include "calendar.h"
apoint_llist_t *alist_p;
@@ -333,7 +334,7 @@ apoint_llist_node_t *apoint_recur_s2apoint_s(
* Switch notification state.
*/
void
-apoint_switch_notify(int year, int month, int day, int item_num)
+apoint_switch_notify(int item_num)
{
apoint_llist_node_t *apoint;
struct day_item_s *p;
@@ -344,7 +345,7 @@ apoint_switch_notify(int year, int month, int day, int item_num)
if (p->type != APPT && p->type != RECUR_APPT)
return;
- date = date2sec(year, month, day, 0, 0);
+ date = calendar_get_slctd_day_sec();
if (p->type == RECUR_APPT) {
recur_apoint_switch_notify(date, p->appt_pos);