diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2018-03-29 00:38:59 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2018-03-29 00:38:59 +0000 |
commit | ac9f8d52a8715476153ade910dd81436bfdea2a7 (patch) | |
tree | f3ad7d4cdd50c3d4b5f8caf57438279c53756dc9 /src/LYUtils.c | |
parent | d59cf1e795c0628c2f8b4dce3052627ecdad20a8 (diff) | |
download | lynx-snapshots-ac9f8d52a8715476153ade910dd81436bfdea2a7.tar.gz |
snapshot of project "lynx", label v2-8-9dev_17d
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r-- | src/LYUtils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c index 6b493afc..d123e916 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYUtils.c,v 1.290 2018/03/27 23:07:44 tom Exp $ + * $LynxId: LYUtils.c,v 1.291 2018/03/28 21:14:39 tom Exp $ */ #include <HTUtils.h> #include <HTTCP.h> @@ -4230,9 +4230,9 @@ static BOOLEAN LYExpandHostForURL(char **AllocatedString, fprintf(stdout, "%s '%s'%s\r\n", WWW_FIND_MESSAGE, host, FIRST_SEGMENT); } #ifdef INET6 - if (HTGetAddrInfo(host, 80) != NULL) + if (HTCheckAddrInfo(host, 80)) #else - if (LYGetHostByName(host) != NULL) + if (LYCheckHostByName(host)) #endif /* INET6 */ { /* @@ -4334,7 +4334,7 @@ static BOOLEAN LYExpandHostForURL(char **AllocatedString, } else if (Startup && !dump_output_immediately) { fprintf(stdout, "%s '%s'%s\n", WWW_FIND_MESSAGE, host, GUESSING_SEGMENT); } - GotHost = (BOOL) (LYGetHostByName(host) != NULL); + GotHost = LYCheckHostByName(host); if (HostColon != NULL) { *HostColon = ':'; } |