From c23cf6a0581973fdf6156a564c3dd09e0840ff40 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 4 Feb 2004 07:49:33 +0000 Subject: ares_free_string() now takes a void * instead --- ares/ares.h | 2 +- ares/ares_free_string.c | 2 +- 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 #include "ares.h" -void ares_free_string(char *str) +void ares_free_string(void *str) { free(str); } -- cgit v1.2.3