Commit b7959298 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

INADDR_NONE should be in_addr_t to work with 64bit archs better.

Really, we should only #define this in one file, not both here and in
connect.c!
parent 535258ff
Loading
Loading
Loading
Loading
+1 −1
Changes for lib/hostip.c: 1 added line, 1 removed line.
Original line number Original line Diff line number Diff line
@@ -409,7 +409,7 @@ static char *MakeIP(unsigned long num,char *addr, int addr_len)
   considerably. */
   considerably. */


#ifndef INADDR_NONE
#ifndef INADDR_NONE
#define INADDR_NONE (unsigned long) ~0
#define INADDR_NONE (in_addr_t) ~0
#endif
#endif


Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,