summaryrefslogtreecommitdiff
path: root/src/args.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-12-09 20:48:39 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2011-12-09 20:54:20 +0100
commit093b28ac398ffdc2733bc6f42fa58d2153576ad9 (patch)
treedf01b2cf12579376fea9b84a8f0e0ccba1f708e8 /src/args.c
parentef716e4a9267008061f1e6469182a4daaec1c05f (diff)
downloadcalcurse-093b28ac398ffdc2733bc6f42fa58d2153576ad9.zip
Extract config file handlers into a separate file
We used custom_load_conf() to load the configuration file and io_save_conf() to save configuration. Move these functions, including all helpers, to a central location. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/args.c')
-rw-r--r--src/args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/args.c b/src/args.c
index d4209bf..04dd690 100644
--- a/src/args.c
+++ b/src/args.c
@@ -910,7 +910,7 @@ parse_args (int argc, char **argv)
io_check_file (path_apts, NULL);
io_check_file (path_conf, NULL);
io_load_app ();
- custom_load_conf (); /* To get output date format. */
+ config_load (); /* To get output date format. */
if (dflag)
date_arg (ddate, add_line, fmt_apt, fmt_rapt, fmt_ev, fmt_rev,
preg);
@@ -926,7 +926,7 @@ parse_args (int argc, char **argv)
io_check_file (path_apts, NULL);
io_check_file (path_conf, NULL);
vars_init ();
- custom_load_conf (); /* To get output date format. */
+ config_load (); /* To get output date format. */
io_load_app ();
day.dd = day.mm = day.yyyy = 0;
app_arg (add_line, &day, 0, fmt_apt, fmt_rapt, fmt_ev, fmt_rev,