mirror of
https://github.com/mirror/wget.git
synced 2025-01-07 19:00:30 +08:00
[svn] Avoid unneeded initialization of local var.
This commit is contained in:
parent
e3fb2ec5df
commit
3d04bb3a2c
@ -261,7 +261,7 @@ connect_to_ip (const ip_address *ip, int port, const char *print)
|
|||||||
{
|
{
|
||||||
struct sockaddr_storage ss;
|
struct sockaddr_storage ss;
|
||||||
struct sockaddr *sa = (struct sockaddr *)&ss;
|
struct sockaddr *sa = (struct sockaddr *)&ss;
|
||||||
int sock = -1;
|
int sock;
|
||||||
|
|
||||||
/* If PRINT is non-NULL, print the "Connecting to..." line, with
|
/* If PRINT is non-NULL, print the "Connecting to..." line, with
|
||||||
PRINT being the host name we're connecting to. */
|
PRINT being the host name we're connecting to. */
|
||||||
|
@ -202,7 +202,7 @@ convert_links (const char *file, struct urlpos *links)
|
|||||||
any URL needs to be converted in the first place. If not, just
|
any URL needs to be converted in the first place. If not, just
|
||||||
leave the file alone. */
|
leave the file alone. */
|
||||||
int dry_count = 0;
|
int dry_count = 0;
|
||||||
struct urlpos *dry = links;
|
struct urlpos *dry;
|
||||||
for (dry = links; dry; dry = dry->next)
|
for (dry = links; dry; dry = dry->next)
|
||||||
if (dry->convert != CO_NOCONVERT)
|
if (dry->convert != CO_NOCONVERT)
|
||||||
++dry_count;
|
++dry_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user