Skip to content
Snippets Groups Projects
Commit c23cf6a0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

ares_free_string() now takes a void * instead

parent 79f9914a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -16,7 +16,7 @@
#include <stdlib.h>
#include "ares.h"
void ares_free_string(char *str)
void ares_free_string(void *str)
{
free(str);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment