From 7858c7cdb41272a08cc7839be0971ceff32b8635 Mon Sep 17 00:00:00 2001 From: Ahmed Badran Date: Fri, 5 Sep 2008 00:13:23 -0700 Subject: [PATCH] Minor adjustments Signed-off-by: Ahmed Badran --- src/main.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cc b/src/main.cc index 451a99c..7d468f2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -21,7 +21,7 @@ using namespace std; bool vimicxx_init(string*); -void vimicxx_config(const string& vimicxx_dir, configfile*); +void vimicxx_config(configfile*); bool vimicxx_parse_cmd(int argc, char** argv); int main(int argc, char* argv[]) @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) return 1; } configfile vimicxx_conf(DOTVIMICXX_PATH + "/vimicxx.conf"); - vimicxx_config(DOTVIMICXX_PATH + "/vimicxx.conf", &vimicxx_conf); + vimicxx_config(&vimicxx_conf); if (!vimicxx_parse_cmd(argc, argv)) { return 1; } @@ -69,14 +69,14 @@ bool vimicxx_init(string* vimicxx_path) /* * Parse the command line, figure out what needs to be done. */ -void vimicxx_config(const string& conf_path, configfile* conf) +void vimicxx_config(configfile* conf) { struct stat tmp_stat; - if ((stat(conf_path.c_str(), &tmp_stat)) == 0) { + if ((stat(conf->get_name().c_str(), &tmp_stat)) == 0) { return; } conf->add_section("vimicxx.conf"); - conf->add_key("vimicxx.conf", "conf_path", conf_path); + conf->add_key("vimicxx.conf", "conf_file_path", conf->get_name()); conf->save(); } -- 2.11.4.GIT