summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-09-12 15:08:21 +0000
committerFrederic Culot <calcurse@culot.org>2006-09-12 15:08:21 +0000
commit7dcbf6d0b3b547e6ad24f70e64785e1e492237de (patch)
treebd4417311e01f2aab52a9373e7409ce459c339d7 /src
parent97768818e64571198b347ac5788c8d09224236b8 (diff)
downloadcalcurse-7dcbf6d0b3b547e6ad24f70e64785e1e492237de.tar.gz
calcurse-7dcbf6d0b3b547e6ad24f70e64785e1e492237de.zip
calls to apoint_llist_init() and recur_apoint_llist_init() added
Diffstat (limited to 'src')
-rwxr-xr-xsrc/calcurse.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 7c9be7d..c7e4995 100755
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -1,4 +1,4 @@
-/* $calcurse: calcurse.c,v 1.15 2006/09/11 13:43:42 culot Exp $ */
+/* $calcurse: calcurse.c,v 1.16 2006/09/12 15:08:21 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -136,6 +136,10 @@ int main(int argc, char **argv)
textdomain (PACKAGE);
#endif /* ENABLE_NLS */
+ /* Thread-safe data structure init */
+ apoint_llist_init();
+ recur_apoint_llist_init();
+
/*
* Begin by parsing and handling command line arguments.
* The data path is also initialized here.
@@ -930,7 +934,7 @@ void add_item(void)
char item_time[MAX_LENGTH];
char item_mesg[MAX_LENGTH];
long apoint_duration;
- struct apoint_s *apoint_pointeur;
+ apoint_llist_node_t *apoint_pointeur;
struct event_s *event_pointeur;
unsigned heures, minutes;
unsigned end_h, end_m;