]> granicus.if.org Git - curl/commitdiff
INADDR_NONE should be in_addr_t to work with 64bit archs better.
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Feb 2002 22:59:26 +0000 (22:59 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Feb 2002 22:59:26 +0000 (22:59 +0000)
Really, we should only #define this in one file, not both here and in
connect.c!

lib/hostip.c

index 9151605d4e90104df3003786ee7791722710c211..0118ebd5d8b1ea57e59b91230e4575150a63f8e8 100644 (file)
@@ -409,7 +409,7 @@ static char *MakeIP(unsigned long num,char *addr, int addr_len)
    considerably. */
 
 #ifndef INADDR_NONE
-#define INADDR_NONE (unsigned long) ~0
+#define INADDR_NONE (in_addr_t) ~0
 #endif
 
 Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,