From 3487cada8f2ec50b20ccf919d36df211030f1088 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 3 May 2008 01:28:13 +0000 Subject: Changed a couple of configuration variable names Altered name of issuepath config variable to savepath, in config.ini as well as code Altered name of issue_xml config variable to toc_xml Removed unnecessary variable definitions from header git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-49 --- src/getht.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/getht.c') diff --git a/src/getht.c b/src/getht.c index 644577e..e1aa847 100644 --- a/src/getht.c +++ b/src/getht.c @@ -35,7 +35,7 @@ int update_contents_files(); int proxy_type; char proxy_addr[STR_MAX]; long proxy_port; int proxy_auth; char proxy_user[STR_MAX]; char proxy_pass[STR_MAX]; -char issue_xml[STR_MAX]; +char toc_xml[STR_MAX]; char issue_uri[STR_MAX]; CURL *main_curl_handle; @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) scanf("%s", getht_path); } - snprintf(issue_xml,STR_MAX,"%s/%s",getht_path,ISS_XML_FILE); + snprintf(toc_xml,STR_MAX,"%s/%s",getht_path,ISS_XML_FILE); strncpy(issue_uri,XML_TOC_URI,STR_MAX); @@ -163,7 +163,7 @@ int main(int argc, char *argv[]) if(downissue || listissues) { - issue = parsetoc(issue_xml, &no_of_issues); + issue = parsetoc(toc_xml, &no_of_issues); if(!issue) { @@ -172,7 +172,7 @@ int main(int argc, char *argv[]) printf("Cannot open contents file, trying to update contents\n"); if(update_contents_files()) return 1; - issue = parsetoc(issue_xml, &no_of_issues); + issue = parsetoc(toc_xml, &no_of_issues); } else { @@ -203,7 +203,7 @@ int main(int argc, char *argv[]) int update_contents_files() /* Returns 0 on success, 1 on failure */ { - if(save_file(NULL, issue_uri, issue_xml, "contents", 0)) + if(save_file(NULL, issue_uri, toc_xml, "contents", 0)) return 1; else return 0; -- cgit v1.2.3