const correctness to match getaddrinfo() signature

This commit is contained in:
Ian Gulliver
2016-03-01 20:08:44 -08:00
parent 9922e6fafd
commit 2d6256b3a3
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ void asyncaddrinfo_cleanup() {
asyncaddrinfo_threads = NULL; asyncaddrinfo_threads = NULL;
} }
int asyncaddrinfo_resolve(const char *node, const char *service, struct addrinfo *hints) { int asyncaddrinfo_resolve(const char *node, const char *service, const struct addrinfo *hints) {
int fds[2]; int fds[2];
assert(!socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, fds)); assert(!socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, fds));

View File

@@ -4,5 +4,5 @@ struct addrinfo;
void asyncaddrinfo_init(size_t threads); void asyncaddrinfo_init(size_t threads);
void asyncaddrinfo_cleanup(void); void asyncaddrinfo_cleanup(void);
int asyncaddrinfo_resolve(const char *node, const char *service, struct addrinfo *hints); int asyncaddrinfo_resolve(const char *node, const char *service, const struct addrinfo *hints);
int asyncaddrinfo_result(int fd, struct addrinfo **addrs); int asyncaddrinfo_result(int fd, struct addrinfo **addrs);