Loading ares/ares.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 */ ares/ares_strerror.c +2 −6 Original line number Diff line number Diff line Loading @@ -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", Loading Loading
ares/ares.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 */
ares/ares_strerror.c +2 −6 Original line number Diff line number Diff line Loading @@ -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", Loading