X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhost.c;fp=src%2Fhost.c;h=d915393c398a6e13ddc243caf5090bd9e22f2869;hp=863209f395439b86bd2aa2b3040409437fa0ee65;hb=462e643a7e31676eceda23e634241f7b4d2cd7bb;hpb=3073a77ed89e7d9527d110a028d134bfd1f9cb40 diff --git a/src/host.c b/src/host.c index 863209f3..d915393c 100644 --- a/src/host.c +++ b/src/host.c @@ -28,7 +28,7 @@ Corresponding Source for a non-source form of such a combination shall include the source code for the parts of OpenSSL used as well as that of the covered work. */ -#include +#include "wget.h" #include #include @@ -49,7 +49,6 @@ as that of the covered work. */ #include -#include "wget.h" #include "utils.h" #include "host.h" #include "url.h" @@ -496,7 +495,7 @@ is_valid_ipv6_address (const char *str, const char *end) int ch = *str++; /* if ch is a number, add it to val. */ - if (ISXDIGIT (ch)) + if (c_isxdigit (ch)) { val <<= 4; val |= XDIGIT_TO_NUM (ch); @@ -849,7 +848,7 @@ sufmatch (const char **list, const char *what) for (i = 0; list[i]; i++) { for (j = strlen (list[i]), k = lw; j >= 0 && k >= 0; j--, k--) - if (TOLOWER (list[i][j]) != TOLOWER (what[k])) + if (c_tolower (list[i][j]) != c_tolower (what[k])) break; /* The domain must be first to reach to beginning. */ if (j == -1)