aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-05-13 12:12:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-05-13 12:12:17 +0000
commite615d117a010e068f3d0639928cc9555b14c0077 (patch)
tree84ed73313e01924656dcf200b45b983798bdabaf /lib/connect.c
parenta51258b6bbec9e075894f5aa2e180b6c40613ba8 (diff)
Setup and use CURL_INADDR_NONE all over instead of INADDR_NONE. We setup
the define accordingly in the hostip.h header to work nicely all over.
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 125d388d8..9a78f1610 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -197,10 +197,6 @@ static CURLcode bindlocal(struct connectdata *conn,
#ifdef HAVE_INET_NTOA
-#ifndef INADDR_NONE
-#define INADDR_NONE (in_addr_t) ~0
-#endif
-
struct SessionHandle *data = conn->data;
/*************************************************************
@@ -216,7 +212,7 @@ static CURLcode bindlocal(struct connectdata *conn,
/* First check if the given name is an IP address */
in=inet_addr(data->set.device);
- if((in == INADDR_NONE) &&
+ if((in == CURL_INADDR_NONE) &&
Curl_if2ip(data->set.device, myhost, sizeof(myhost))) {
/*
* We now have the numerical IPv4-style x.y.z.w in the 'myhost' buffer
@@ -250,7 +246,7 @@ static CURLcode bindlocal(struct connectdata *conn,
infof(data, "We bind local end to %s\n", myhost);
in=inet_addr(myhost);
- if (INADDR_NONE != in) {
+ if (CURL_INADDR_NONE != in) {
if ( h ) {
Curl_addrinfo *addr = h->addr;