]> granicus.if.org Git - curl/commitdiff
removed the silly second argument to ares_strerror()
authorDaniel Stenberg <daniel@haxx.se>
Mon, 2 Feb 2004 15:59:12 +0000 (15:59 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 2 Feb 2004 15:59:12 +0000 (15:59 +0000)
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
ares/ares_strerror.c

index e00d88b3d2be40c7aa2da1e89b89e1a7db441dd0..c1b10d061f97a6d794122902f687c9a0afc4cf7a 100644 (file)
@@ -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 */
index c8fc111a10123f5c4a1297270a450aaf681f4fa9..7918e660cfa835e9ddb7e626fe9862d846a60bd8 100644 (file)
  * 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",