aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-04 07:49:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-04 07:49:33 +0000
commitc23cf6a0581973fdf6156a564c3dd09e0840ff40 (patch)
tree723a36fcb6b97226d9d8e8c9dd0aa19464f764c9
parent79f9914af84f8d70fb56cbad2de095f9733eabae (diff)
ares_free_string() now takes a void * instead
-rw-r--r--ares/ares.h2
-rw-r--r--ares/ares_free_string.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ares/ares.h b/ares/ares.h
index c1b10d061..7ff256c8f 100644
--- a/ares/ares.h
+++ b/ares/ares.h
@@ -122,7 +122,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen,
struct hostent **host);
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_string(void *str);
void ares_free_hostent(struct hostent *host);
const char *ares_strerror(int code);
void ares_free_errmem(char *mem);
diff --git a/ares/ares_free_string.c b/ares/ares_free_string.c
index c05069cca..3b01c9e61 100644
--- a/ares/ares_free_string.c
+++ b/ares/ares_free_string.c
@@ -16,7 +16,7 @@
#include <stdlib.h>
#include "ares.h"
-void ares_free_string(char *str)
+void ares_free_string(void *str)
{
free(str);
}