ares_free_string() now takes a void * instead

This commit is contained in:
Daniel Stenberg 2004-02-04 07:49:33 +00:00
parent 79f9914af8
commit c23cf6a058
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen,
struct hostent **host); struct hostent **host);
int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, 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(void *str);
void ares_free_hostent(struct hostent *host); void ares_free_hostent(struct hostent *host);
const char *ares_strerror(int code); const char *ares_strerror(int code);
void ares_free_errmem(char *mem); void ares_free_errmem(char *mem);

View File

@ -16,7 +16,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "ares.h" #include "ares.h"
void ares_free_string(char *str) void ares_free_string(void *str)
{ {
free(str); free(str);
} }