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>
* wget.h (uerr_t): Remove unused error codes

View File

@ -2904,8 +2904,7 @@ read_header:
{
if (opt.unlink && file_exists_p (hs->local_file))
{
int res = unlink (hs->local_file);
if (res < 0)
if (unlink (hs->local_file) < 0)
{
logprintf (LOG_NOTQUIET, "%s: %s\n", hs->local_file,
strerror (errno));