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>
* init.c: Add "unlink" command into command list.

View File

@ -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);