diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-10 03:01:50 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-10 03:01:50 +0000 |
commit | 885805b5dfb89c78f04acde12805b48d91141bb5 (patch) | |
tree | 510d1c0799e15ff3018ac251ad6141436ebf9d2c /lib/hostares.c | |
parent | d61f2603722e8f83d8cb63fbef90fe0914e2338c (diff) | |
download | curl-885805b5dfb89c78f04acde12805b48d91141bb5.tar.gz |
move struct namebuf6 declaration out of Curl_ip2addr6()
Diffstat (limited to 'lib/hostares.c')
-rw-r--r-- | lib/hostares.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/hostares.c b/lib/hostares.c index e268f11bd..2e5f8f734 100644 --- a/lib/hostares.c +++ b/lib/hostares.c @@ -290,6 +290,14 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn, } #ifdef ENABLE_IPV6 /* CURLRES_IPV6 */ + +struct namebuf6 { + struct hostent hostentry; + char *h_addr_list[2]; + struct in6_addr addrentry; + char hostname[1]; +}; + /* * Curl_ip2addr6() takes an ipv6 internet address as input parameter * together with a pointer to the string version of the address, and it @@ -313,12 +321,6 @@ Curl_addrinfo *Curl_ip2addr6(struct in6_addr *in, struct hostent *h; struct in6_addr *addrentry; - struct namebuf6 { - struct hostent hostentry; - char *h_addr_list[2]; - struct in6_addr addrentry; - char hostname[1]; - }; struct namebuf6 *buf = malloc(sizeof (struct namebuf6) + strlen(hostname)); if(!buf) |