projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d878865
)
ares_free_string() now takes a void * instead
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 4 Feb 2004 07:49:33 +0000
(07:49 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 4 Feb 2004 07:49:33 +0000
(07:49 +0000)
ares.h
patch
|
blob
|
history
ares_free_string.c
patch
|
blob
|
history
diff --git
a/ares.h
b/ares.h
index
c1b10d0
..
7ff256c
100644
(file)
--- a/
ares.h
+++ b/
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_free_string.c
b/ares_free_string.c
index
c05069c
..
3b01c9e
100644
(file)
--- a/
ares_free_string.c
+++ b/
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);
}