]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
gethosts: Remove unused argument _type
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 3 Aug 2021 20:51:01 +0000 (02:21 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 3 Aug 2021 20:53:43 +0000 (02:23 +0530)
The generated code is unchanged.

sysdeps/posix/getaddrinfo.c

index 43dfc6739e350a584f2dd4f48ef5167edb1a0fab..9f1cde27b5b90e6132cf51a6f697262e19623416 100644 (file)
@@ -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)
                            {