Skip to content
Snippets Groups Projects
Commit aa93e2e6 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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!
parent e1d54108
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, ...@@ -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); int addrlen, int family, struct hostent **host);
void ares_free_string(char *str); void ares_free_string(char *str);
void ares_free_hostent(struct hostent *host); 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); void ares_free_errmem(char *mem);
#endif /* ARES__H */ #endif /* ARES__H */
...@@ -13,16 +13,12 @@ ...@@ -13,16 +13,12 @@
* without express or implied warranty. * without express or implied warranty.
*/ */
static const char rcsid[] = "$Id$";
#include <assert.h> #include <assert.h>
#include "ares.h" #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. /* Return a string literal from a table. */
* For now, just return a string literal from a table.
*/
const char *errtext[] = { const char *errtext[] = {
"Successful completion", "Successful completion",
"DNS server returned answer with no data", "DNS server returned answer with no data",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment