diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hostip6.c | 35 | ||||
| -rw-r--r-- | lib/memdebug.h | 9 | 
2 files changed, 2 insertions, 42 deletions
| diff --git a/lib/hostip6.c b/lib/hostip6.c index 7c9988f41..3bf47b467 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -5,7 +5,7 @@   *                            | (__| |_| |  _ <| |___   *                             \___|\___/|_| \_\_____|   * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, 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 @@ -59,39 +59,6 @@  #include "curl_memory.h"  #include "memdebug.h" -#if defined(CURLDEBUG) && defined(HAVE_GETNAMEINFO) -/* These are strictly for memory tracing and are using the same style as the - * family otherwise present in memdebug.c. I put these ones here since they - * require a bunch of structs I didn't want to include in memdebug.c - */ - -/* - * For CURLRES_ARS, this should be written using ares_gethostbyaddr() - * (ignoring the fact c-ares doesn't return 'serv'). - */ - -int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa, -                       GETNAMEINFO_TYPE_ARG2 salen, -                       char *host, GETNAMEINFO_TYPE_ARG46 hostlen, -                       char *serv, GETNAMEINFO_TYPE_ARG46 servlen, -                       GETNAMEINFO_TYPE_ARG7 flags, -                       int line, const char *source) -{ -  int res = (getnameinfo)(sa, salen, -                          host, hostlen, -                          serv, servlen, -                          flags); -  if(0 == res) -    /* success */ -    curl_memlog("GETNAME %s:%d getnameinfo()\n", -                source, line); -  else -    curl_memlog("GETNAME %s:%d getnameinfo() failed = %d\n", -                source, line, res); -  return res; -} -#endif /* defined(CURLDEBUG) && defined(HAVE_GETNAMEINFO) */ -  /*   * Curl_ipv6works() returns TRUE if IPv6 seems to work.   */ diff --git a/lib/memdebug.h b/lib/memdebug.h index 6fb8b6851..233de65a4 100644 --- a/lib/memdebug.h +++ b/lib/memdebug.h @@ -8,7 +8,7 @@   *                            | (__| |_| |  _ <| |___   *                             \___|\___/|_| \_\_____|   * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, 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 @@ -137,13 +137,6 @@ CURL_EXTERN int curl_fclose(FILE *file, int line, const char *source);  #endif  #endif /* HAVE_GETADDRINFO */ -#ifdef HAVE_GETNAMEINFO -#undef getnameinfo -#define getnameinfo(sa,salen,host,hostlen,serv,servlen,flags) \ -  curl_dogetnameinfo(sa, salen, host, hostlen, serv, servlen, flags, \ -                     __LINE__, __FILE__) -#endif /* HAVE_GETNAMEINFO */ -  #ifdef HAVE_FREEADDRINFO  #undef freeaddrinfo  #define freeaddrinfo(data) \ | 
