diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-02 15:59:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-02 15:59:12 +0000 |
commit | 3ac93aa3c5a1cd8af9b0133c9ac78696727fb967 (patch) | |
tree | 980b105103cfa0226c1298ba11932518e188102b /ares_strerror.c | |
parent | d323492eb884ccfb6775c13c73cb58b6b11f37f0 (diff) | |
download | c-ares-3ac93aa3c5a1cd8af9b0133c9ac78696727fb967.tar.gz c-ares-3ac93aa3c5a1cd8af9b0133c9ac78696727fb967.tar.bz2 c-ares-3ac93aa3c5a1cd8af9b0133c9ac78696727fb967.zip |
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!
Diffstat (limited to 'ares_strerror.c')
-rw-r--r-- | ares_strerror.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ares_strerror.c b/ares_strerror.c index c8fc111..7918e66 100644 --- a/ares_strerror.c +++ b/ares_strerror.c @@ -13,16 +13,12 @@ * without express or implied warranty. */ -static const char rcsid[] = "$Id$"; - #include <assert.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. - * 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", |