diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-01-02 10:06:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-01-02 10:06:47 +0000 |
commit | fe37fb5921a590a70ddcdb146955eb94b9ecf17b (patch) | |
tree | 6ab7a1ad89dd69bc25a4f8c6548b2087434a141d /lib/connect.c | |
parent | 221ecd0a30a7283277ba0dc9036a9afe6f99147a (diff) |
Philip Gladstone's 64-bit sparc native compiler compatibility issues fixed.
Diffstat (limited to 'lib/connect.c')
-rw-r--r-- | lib/connect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/connect.c b/lib/connect.c index 9f8efdbd6..06d2464ae 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -193,7 +193,7 @@ static CURLcode bindlocal(struct connectdata *conn, #ifdef HAVE_INET_NTOA #ifndef INADDR_NONE -#define INADDR_NONE (unsigned long) ~0 +#define INADDR_NONE (in_addr_t) ~0 #endif struct SessionHandle *data = conn->data; @@ -207,7 +207,7 @@ static CURLcode bindlocal(struct connectdata *conn, char *hostdataptr=NULL; size_t size; char myhost[256] = ""; - unsigned long in; + in_addr_t in; if(Curl_if2ip(data->set.device, myhost, sizeof(myhost))) { h = Curl_getaddrinfo(data, myhost, 0, &hostdataptr); @@ -236,7 +236,8 @@ static CURLcode bindlocal(struct connectdata *conn, infof(data, "We bind local end to %s\n", myhost); - if ( (in=inet_addr(myhost)) != INADDR_NONE ) { + in=inet_addr(myhost); + if (INADDR_NONE != in) { if ( h ) { memset((char *)&sa, 0, sizeof(sa)); |