aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-24 08:30:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-24 08:30:39 +0000
commitd6f9a41539062eb26219dea414c2aba7260321dd (patch)
tree10eb5808bb1f5d67f299b61eb48aaac9eff407a5 /lib/hostip4.c
parent1daa258b8aaa004ddc022d98f2c0ea13ffb580a6 (diff)
use Curl_addrinfo, not 'struct addrinfo'
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c
index 4dfa31b80..b742dfa10 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -419,7 +419,7 @@ Curl_addrinfo *Curl_he2ai(struct hostent *he, unsigned short port)
for(i=0; (curr = (struct in_addr *)he->h_addr_list[i]); i++) {
- ai = calloc(1, sizeof(struct addrinfo) + sizeof(struct sockaddr_in));
+ ai = calloc(1, sizeof(Curl_addrinfo) + sizeof(struct sockaddr_in));
if(!ai)
break;
@@ -437,7 +437,7 @@ Curl_addrinfo *Curl_he2ai(struct hostent *he, unsigned short port)
ai->ai_addrlen = sizeof(struct sockaddr_in);
/* make the ai_addr point to the address immediately following this struct
and use that area to store the address */
- ai->ai_addr = (struct sockaddr *) ((char*)ai + sizeof(struct addrinfo));
+ ai->ai_addr = (struct sockaddr *) ((char*)ai + sizeof(Curl_addrinfo));
/* leave the rest of the struct filled with zero */