aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-02-18 22:59:26 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-02-18 22:59:26 +0000
commitb795929858e7b8ebe42ad5a502a5d0bd569d5745 (patch)
tree579d36ae6371d5bcfd42200ce901e8fe02fc69c6
parent535258ffe4cd770615828b1cda85bc094c9074fd (diff)
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!
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 9151605d4..0118ebd5d 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -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,