mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-11-23 20:32:47 +00:00
Fix compiler warning and compatibility issue with the type of the parameter used in getnameinfo() to receive the length of the sockaddr struct.
This commit is contained in:
2
ares.h
2
ares.h
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user