summaryrefslogtreecommitdiff
path: root/src/getht.c
diff options
context:
space:
mode:
authorNick White <arch@njw.me.uk>2008-05-03 01:28:13 +0000
committerNick White <arch@njw.me.uk>2008-05-03 01:28:13 +0000
commit3487cada8f2ec50b20ccf919d36df211030f1088 (patch)
tree81579027fdf753374e5f23fefa374afeba40b040 /src/getht.c
parent3b5e0ddd46a8f4034b7e8aaebd4cdadce2d54828 (diff)
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
Diffstat (limited to 'src/getht.c')
-rw-r--r--src/getht.c10
1 files changed, 5 insertions, 5 deletions
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;