X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fconnect.c;h=f46f11c44461017a2dce3549622268f7fc0fea70;hb=766df9d4e9392045a4e5c730ed81e599b509557a;hp=223e6a857f6a7325a91e93f693e3b31ed0c80038;hpb=462e643a7e31676eceda23e634241f7b4d2cd7bb;p=wget diff --git a/src/connect.c b/src/connect.c index 223e6a85..f46f11c4 100644 --- a/src/connect.c +++ b/src/connect.c @@ -1,6 +1,6 @@ /* Establishing and handling network connections. Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of GNU Wget. @@ -51,11 +51,19 @@ as that of the covered work. */ #ifdef HAVE_SYS_SELECT_H # include #endif /* HAVE_SYS_SELECT_H */ +#ifdef HAVE_SYS_TIME_H +# include +#endif #include "utils.h" #include "host.h" #include "connect.h" #include "hash.h" +/* Apparently needed for Interix: */ +#ifdef HAVE_STDINT_H +# include +#endif + /* Define sockaddr_storage where unavailable (presumably on IPv4-only hosts). */ @@ -192,8 +200,8 @@ resolve_bind_address (struct sockaddr *sa) { /* #### We should be able to print the error message here. */ logprintf (LOG_NOTQUIET, - _("%s: unable to resolve bind address `%s'; disabling bind.\n"), - exec_name, opt.bind_address); + _("%s: unable to resolve bind address %s; disabling bind.\n"), + exec_name, quote (opt.bind_address)); should_bind = false; return false; } @@ -265,7 +273,7 @@ connect_to_ip (const ip_address *ip, int port, const char *print) const char *txt_addr = print_address (ip); if (print && 0 != strcmp (print, txt_addr)) logprintf (LOG_VERBOSE, _("Connecting to %s|%s|:%d... "), - escnonprint (print), txt_addr, port); + escnonprint_uri (print), txt_addr, port); else logprintf (LOG_VERBOSE, _("Connecting to %s:%d... "), txt_addr, port); } @@ -363,8 +371,8 @@ connect_to_host (const char *host, int port) if (!al) { logprintf (LOG_NOTQUIET, - _("%s: unable to resolve host address `%s'\n"), - exec_name, host); + _("%s: unable to resolve host address %s\n"), + exec_name, quote (host)); return E_HOST; }