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

Fix indentation and remove excess variable

This commit is contained in:
Darshit Shah 2014-07-05 11:54:46 +05:30
parent 97ce41b2d0
commit 550cd6e9d2
2 changed files with 15 additions and 11 deletions

View File

@ -1,3 +1,8 @@
2014-07-05 Darshit Shah <darnir@gmail.com>
* http.c (gethttp): Fix indentation of conditional block
(gethttp): Remove unneeded variable
2014-07-03 Darshit Shah <darnir@gmail.com> 2014-07-03 Darshit Shah <darnir@gmail.com>
* wget.h (uerr_t): Remove unused error codes * wget.h (uerr_t): Remove unused error codes

View File

@ -2902,19 +2902,18 @@ read_header:
} }
else if (ALLOW_CLOBBER || count > 0) else if (ALLOW_CLOBBER || count > 0)
{ {
if (opt.unlink && file_exists_p (hs->local_file)) if (opt.unlink && file_exists_p (hs->local_file))
{
int res = unlink (hs->local_file);
if (res < 0)
{ {
logprintf (LOG_NOTQUIET, "%s: %s\n", hs->local_file, if (unlink (hs->local_file) < 0)
strerror (errno)); {
CLOSE_INVALIDATE (sock); logprintf (LOG_NOTQUIET, "%s: %s\n", hs->local_file,
xfree (head); strerror (errno));
xfree_null (type); CLOSE_INVALIDATE (sock);
return UNLINKERR; xfree (head);
xfree_null (type);
return UNLINKERR;
}
} }
}
#ifdef __VMS #ifdef __VMS
int open_id; int open_id;