diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-08-29 15:17:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-08-29 15:17:47 +0000 |
commit | 1bec3073dc3ef1f22981f289edb8985b1ecb8a9b (patch) | |
tree | 398a3ad1efb43a0a09658799d2b9cc0e6469569d /ares_getnameinfo.c | |
parent | 70a27de3c5cce31b22856f824bcf55e0540b593e (diff) | |
download | c-ares-1bec3073dc3ef1f22981f289edb8985b1ecb8a9b.tar.gz c-ares-1bec3073dc3ef1f22981f289edb8985b1ecb8a9b.tar.bz2 c-ares-1bec3073dc3ef1f22981f289edb8985b1ecb8a9b.zip |
Brad Spencer did
o made ares_version.h use extern "C" for c++ compilers
o fixed compiler warnings in ares_getnameinfo.c
o fixed a buffer position init for TCP reads
Diffstat (limited to 'ares_getnameinfo.c')
-rw-r--r-- | ares_getnameinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_getnameinfo.c b/ares_getnameinfo.c index d13b11d..0b12f38 100644 --- a/ares_getnameinfo.c +++ b/ares_getnameinfo.c @@ -81,8 +81,8 @@ static char *ares_striendstr(const char *s1, const char *s2); void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa, socklen_t salen, int flags, ares_nameinfo_callback callback, void *arg) { - struct sockaddr_in *addr = NULL; - struct sockaddr_in6 *addr6 = NULL; + struct sockaddr_in *addr; + struct sockaddr_in6 *addr6; struct nameinfo_query *niquery; /* Verify the buffer size */ |