From 62864cee6ea9d8073a5c3044ee36dba0a29f89ff Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 6 Oct 2010 12:24:38 +0200 Subject: [PATCH] Remove unused local variable. --- src/ChangeLog | 4 ++++ src/main.c | 12 +++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 624ae485..c7eba319 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-10-06 Giuseppe Scrivano + + * main.c (main): Remove unused variable `status'. + 2010-09-25 Merinov Nikolay * init.c: Add "unlink" command into command list. diff --git a/src/main.c b/src/main.c index 03c6b862..13f8ad44 100644 --- a/src/main.c +++ b/src/main.c @@ -872,7 +872,7 @@ main (int argc, char **argv) { char **url, **t; int i, ret, longindex; - int nurl, status; + int nurl; bool append_to_log = false; program_name = argv[0]; @@ -1271,7 +1271,6 @@ outputting to a regular file.\n")); signal (SIGWINCH, progress_handle_sigwinch); #endif - status = RETROK; /* initialize it, just-in-case */ /* Retrieve the URLs from argument list. */ for (t = url; *t; t++) { @@ -1291,7 +1290,6 @@ outputting to a regular file.\n")); char *error = url_error (*t, url_err); logprintf (LOG_NOTQUIET, "%s: %s.\n",*t, error); xfree (error); - status = URLERROR; } else { @@ -1304,14 +1302,14 @@ outputting to a regular file.\n")); if (url_scheme (*t) == SCHEME_FTP) opt.follow_ftp = 1; - status = retrieve_tree (url_parsed, NULL); + retrieve_tree (url_parsed, NULL); opt.follow_ftp = old_follow_ftp; } else { - status = retrieve_url (url_parsed, *t, &filename, &redirected_URL, - NULL, &dt, opt.recursive, iri, true); + retrieve_url (url_parsed, *t, &filename, &redirected_URL, NULL, + &dt, opt.recursive, iri, true); } if (opt.delete_after && file_exists_p(filename)) @@ -1332,7 +1330,7 @@ outputting to a regular file.\n")); if (opt.input_filename) { int count; - status = retrieve_from_file (opt.input_filename, opt.force_html, &count); + retrieve_from_file (opt.input_filename, opt.force_html, &count); if (!count) logprintf (LOG_NOTQUIET, _("No URLs found in %s.\n"), opt.input_filename); -- 2.39.2