diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-11 12:03:01 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-11 12:03:01 +0000 |
commit | b4e6ca49d86240a4dcf545a58e8686353941d77e (patch) | |
tree | b9a1da026f480f510c6e4a0d536922791c049747 /ares.h | |
parent | 6681cc24e9a85990939e8dcd6a1536413354ae7b (diff) | |
download | c-ares-b4e6ca49d86240a4dcf545a58e8686353941d77e.tar.gz c-ares-b4e6ca49d86240a4dcf545a58e8686353941d77e.tar.bz2 c-ares-b4e6ca49d86240a4dcf545a58e8686353941d77e.zip |
Fix compiler warning and compatibility issue with the type of the parameter used in getnameinfo() to receive the length of the sockaddr struct.
Diffstat (limited to 'ares.h')
-rw-r--r-- | ares.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -172,7 +172,7 @@ void ares_gethostbyname(ares_channel channel, const char *name, int family, void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen, int family, ares_host_callback callback, void *arg); void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa, - socklen_t salen, int flags, ares_nameinfo_callback callback, + size_t salen, int flags, ares_nameinfo_callback callback, void *arg); int ares_fds(ares_channel channel, fd_set *read_fds, fd_set *write_fds); struct timeval *ares_timeout(ares_channel channel, struct timeval *maxtv, |