]> Pileus Git - lackey/blobdiff - src/cal.c
Common updates to support event and todo editing
[lackey] / src / cal.c
index ee574b7b38e76d4d6c0d9bd0a15aa09b9aa51432..d02e885eb034481eb40b2851912bd8fb5a827fc3 100644 (file)
--- a/src/cal.c
+++ b/src/cal.c
@@ -33,9 +33,9 @@ CAL(dummy);
 CAL(ical);
 
 /* Global data */
-cal_t   *CALS;
-event_t *EVENTS;
-todo_t  *TODOS;
+cal_t   *CAL,   *CALS;
+event_t *EVENT, *EVENTS;
+todo_t  *TODO,  *TODOS;
 
 /* Local data */
 static date_t start;
@@ -111,7 +111,7 @@ void cal_init(void)
                 ical_cals());
 
        /* Load data */
-       cal_load(YEAR, MONTH, DAY, 1);
+       cal_load(SEL.year, SEL.month, SEL.day, 1);
 
        /* Debug */
 #ifdef DEBUG_CALS