diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-08-04 02:21:01 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-08-04 02:23:43 +0530 |
commit | b17e842a60819098d2a203ecc8b8371b7e1d6c65 (patch) | |
tree | e44de1ea871f6bab4352763a19f831c1ab354874 /sysdeps | |
parent | df183287ff7ded9471205abfa59df27e5e5401da (diff) | |
download | glibc-b17e842a60819098d2a203ecc8b8371b7e1d6c65.zip glibc-b17e842a60819098d2a203ecc8b8371b7e1d6c65.tar.gz glibc-b17e842a60819098d2a203ecc8b8371b7e1d6c65.tar.bz2 |
gethosts: Remove unused argument _type
The generated code is unchanged.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 43dfc67..9f1cde2 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -239,7 +239,7 @@ convert_hostent_to_gaih_addrtuple (const struct addrinfo *req, return true; } -#define gethosts(_family, _type) \ +#define gethosts(_family) \ { \ struct hostent th; \ char *localcanon = NULL; \ @@ -829,7 +829,7 @@ gaih_inet (const char *name, const struct gaih_service *service, if (req->ai_family == AF_INET6 || req->ai_family == AF_UNSPEC) { - gethosts (AF_INET6, struct in6_addr); + gethosts (AF_INET6); no_inet6_data = no_data; inet6_status = status; } @@ -841,7 +841,7 @@ gaih_inet (const char *name, const struct gaih_service *service, know we are not going to need them. */ && ((req->ai_flags & AI_ALL) || !got_ipv6))) { - gethosts (AF_INET, struct in_addr); + gethosts (AF_INET); if (req->ai_family == AF_INET) { |