aboutsummaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-08-15 15:36:27 +0000
committerFrederic Culot <calcurse@culot.org>2007-08-15 15:36:27 +0000
commit4307247a07af4362b0b298ce44f5446dac7ffe07 (patch)
tree6f3ef8ce21ab05625a795b5212f2aa3671406130 /src/io.c
parent8c8f3a56ffa46181bc2285f6bfd51e94d21758b7 (diff)
downloadcalcurse-4307247a07af4362b0b298ce44f5446dac7ffe07.tar.gz
calcurse-4307247a07af4362b0b298ce44f5446dac7ffe07.zip
io_load_todo() updated to use todo_set_nb()
Diffstat (limited to 'src/io.c')
-rwxr-xr-xsrc/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/io.c b/src/io.c
index 4f294ae..1a61b9c 100755
--- a/src/io.c
+++ b/src/io.c
@@ -1,4 +1,4 @@
-/* $calcurse: io.c,v 1.20 2007/08/04 14:34:03 culot Exp $ */
+/* $calcurse: io.c,v 1.21 2007/08/15 15:36:27 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -451,7 +451,7 @@ io_save_cal(conf_t *conf)
fprintf(data_file,
"\n# This is the layout of the calendar :\n");
fprintf(data_file, "layout=\n");
- fprintf(data_file, "%d\n", conf->layout);
+ fprintf(data_file, "%d\n", wins_layout());
pthread_mutex_lock(&nbar->mutex);
fprintf(data_file,
@@ -671,7 +671,7 @@ io_load_app(void)
}
/* Load the todo data */
-int
+void
io_load_todo(void)
{
FILE *data_file;
@@ -707,7 +707,7 @@ io_load_todo(void)
++nb_tod;
}
fclose(data_file);
- return nb_tod;
+ todo_set_nb(nb_tod);
}
/* Checks if data files exist. If not, create them */