diff options
Diffstat (limited to 'lib/hostip.c')
-rw-r--r-- | lib/hostip.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index 8df43fc10..dc38b9f74 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -532,10 +532,6 @@ static char *MakeIP(unsigned long num, char *addr, int addr_len) return (addr); } -#ifndef INADDR_NONE -#define INADDR_NONE (in_addr_t) ~0 -#endif - static void hostcache_fixoffset(struct hostent *h, int offset) { int i=0; @@ -573,7 +569,8 @@ static Curl_addrinfo *my_getaddrinfo(struct SessionHandle *data, port=0; /* unused in IPv4 code */ ret = 0; /* to prevent the compiler warning */ - if ( (in=inet_addr(hostname)) != INADDR_NONE ) { + in=inet_addr(hostname); + if (in != CURL_INADDR_NONE) { struct in_addr *addrentry; struct namebuf { struct hostent hostentry; |