From: Guus Sliepen Date: Thu, 14 Jan 2021 21:10:45 +0000 (+0100) Subject: Use AI_* instead of NI_* constants for getaddrinfo(). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=ccc966b3940fa33216c6a02582a6ffc6267b7729;p=meshlink Use AI_* instead of NI_* constants for getaddrinfo(). --- diff --git a/src/netutl.c b/src/netutl.c index 9988b123..2dcf1e47 100644 --- a/src/netutl.c +++ b/src/netutl.c @@ -58,7 +58,7 @@ sockaddr_t str2sockaddr(const char *address, const char *port) { struct addrinfo hint = { .ai_family = AF_UNSPEC, - .ai_flags = NI_NUMERICHOST | NI_NUMERICSERV, + .ai_flags = AI_NUMERICHOST | AI_NUMERICSERV, .ai_socktype = SOCK_STREAM, }; @@ -87,7 +87,7 @@ sockaddr_t str2sockaddr_random(struct meshlink_handle *mesh, const char *address struct addrinfo hint = { .ai_family = AF_UNSPEC, - .ai_flags = NI_NUMERICHOST | NI_NUMERICSERV, + .ai_flags = AI_NUMERICHOST | AI_NUMERICSERV, .ai_socktype = SOCK_STREAM, };