1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Remove unused local variable.

This commit is contained in:
Giuseppe Scrivano 2010-10-06 12:24:38 +02:00
parent b5c9573ad6
commit 62864cee6e
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2010-10-06 Giuseppe Scrivano <gscrivano@gnu.org>
* main.c (main): Remove unused variable `status'.
2010-09-25 Merinov Nikolay <kim.roader@gmail.com> 2010-09-25 Merinov Nikolay <kim.roader@gmail.com>
* init.c: Add "unlink" command into command list. * init.c: Add "unlink" command into command list.

View File

@ -872,7 +872,7 @@ main (int argc, char **argv)
{ {
char **url, **t; char **url, **t;
int i, ret, longindex; int i, ret, longindex;
int nurl, status; int nurl;
bool append_to_log = false; bool append_to_log = false;
program_name = argv[0]; program_name = argv[0];
@ -1271,7 +1271,6 @@ outputting to a regular file.\n"));
signal (SIGWINCH, progress_handle_sigwinch); signal (SIGWINCH, progress_handle_sigwinch);
#endif #endif
status = RETROK; /* initialize it, just-in-case */
/* Retrieve the URLs from argument list. */ /* Retrieve the URLs from argument list. */
for (t = url; *t; t++) for (t = url; *t; t++)
{ {
@ -1291,7 +1290,6 @@ outputting to a regular file.\n"));
char *error = url_error (*t, url_err); char *error = url_error (*t, url_err);
logprintf (LOG_NOTQUIET, "%s: %s.\n",*t, error); logprintf (LOG_NOTQUIET, "%s: %s.\n",*t, error);
xfree (error); xfree (error);
status = URLERROR;
} }
else else
{ {
@ -1304,14 +1302,14 @@ outputting to a regular file.\n"));
if (url_scheme (*t) == SCHEME_FTP) if (url_scheme (*t) == SCHEME_FTP)
opt.follow_ftp = 1; opt.follow_ftp = 1;
status = retrieve_tree (url_parsed, NULL); retrieve_tree (url_parsed, NULL);
opt.follow_ftp = old_follow_ftp; opt.follow_ftp = old_follow_ftp;
} }
else else
{ {
status = retrieve_url (url_parsed, *t, &filename, &redirected_URL, retrieve_url (url_parsed, *t, &filename, &redirected_URL, NULL,
NULL, &dt, opt.recursive, iri, true); &dt, opt.recursive, iri, true);
} }
if (opt.delete_after && file_exists_p(filename)) if (opt.delete_after && file_exists_p(filename))
@ -1332,7 +1330,7 @@ outputting to a regular file.\n"));
if (opt.input_filename) if (opt.input_filename)
{ {
int count; 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) if (!count)
logprintf (LOG_NOTQUIET, _("No URLs found in %s.\n"), logprintf (LOG_NOTQUIET, _("No URLs found in %s.\n"),
opt.input_filename); opt.input_filename);