From aa93e2e638933b06c2464b43a6dcd08c108afeb8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 2 Feb 2004 15:59:12 +0000 Subject: [PATCH] removed the silly second argument to ares_strerror() This breaks the API and ABI with the existing ares library. We hereby require the upcoming c-ares 1.0 for asynch name resolves! --- ares/ares.h | 2 +- ares/ares_strerror.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ares/ares.h b/ares/ares.h index e00d88b3d..c1b10d061 100644 --- a/ares/ares.h +++ b/ares/ares.h @@ -124,7 +124,7 @@ int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, int addrlen, int family, struct hostent **host); void ares_free_string(char *str); void ares_free_hostent(struct hostent *host); -const char *ares_strerror(int code, char **memptr); +const char *ares_strerror(int code); void ares_free_errmem(char *mem); #endif /* ARES__H */ diff --git a/ares/ares_strerror.c b/ares/ares_strerror.c index c8fc111a1..7918e660c 100644 --- a/ares/ares_strerror.c +++ b/ares/ares_strerror.c @@ -13,16 +13,12 @@ * without express or implied warranty. */ -static const char rcsid[] = "$Id$"; - #include #include "ares.h" -const char *ares_strerror(int code, char **memptr) +const char *ares_strerror(int code) { - /* A future implementation may want to handle internationalization. - * For now, just return a string literal from a table. - */ + /* Return a string literal from a table. */ const char *errtext[] = { "Successful completion", "DNS server returned answer with no data",