diff options
author | Yang Tse <yangsita@gmail.com> | 2010-01-22 06:36:52 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-01-22 06:36:52 +0000 |
commit | bfc4c33985aa40557a7b48d8052577b0c8bd0c5c (patch) | |
tree | 20a119eb6fc7b0260a9a55dd75bf4ab4b9db9f06 /lib/hostip.c | |
parent | 5af20c70e4ae23437378d92e162d3377d9666b1f (diff) |
Constantine Sapuntzakis refactoring of async callbacks, allowing
removal of Curl_addrinfo_copy(), Curl_addrinfo6_callback(), and
Curl_addrinfo4_callback()
Diffstat (limited to 'lib/hostip.c')
-rw-r--r-- | lib/hostip.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index fc17de673..7c72c05ed 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -712,20 +712,4 @@ struct curl_hash *Curl_mk_dnscache(void) return Curl_hash_alloc(7, Curl_hash_str, Curl_str_key_compare, freednsentry); } -#ifdef CURLRES_ADDRINFO_COPY -/* align on even 64bit boundaries */ -#define MEMALIGN(x) ((x)+(8-(((unsigned long)(x))&0x7))) - -/* - * Curl_addrinfo_copy() performs a "deep" copy of a hostent into a buffer and - * returns a pointer to the malloc()ed copy. You need to call free() on the - * returned buffer when you're done with it. - */ -Curl_addrinfo *Curl_addrinfo_copy(const void *org, int port) -{ - const struct hostent *orig = org; - - return Curl_he2ai(orig, port); -} -#endif /* CURLRES_ADDRINFO_COPY */ |