]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nscd/nscd_gethst_r.c
resolv: Remove support for RES_USE_INET6 and the inet6 option
[thirdparty/glibc.git] / nscd / nscd_gethst_r.c
index 97c6190c9563f708c4845ee306be3b160503ea2f..f4c5849862a4e6a0c6ae2b6d07e4e6ab99b5379a 100644 (file)
@@ -40,11 +40,7 @@ __nscd_gethostbyname_r (const char *name, struct hostent *resultbuf,
                        char *buffer, size_t buflen, struct hostent **result,
                        int *h_errnop)
 {
-  request_type reqtype;
-
-  reqtype = res_use_inet6 () ? GETHOSTBYNAMEv6 : GETHOSTBYNAME;
-
-  return nscd_gethst_r (name, strlen (name) + 1, reqtype, resultbuf,
+  return nscd_gethst_r (name, strlen (name) + 1, GETHOSTBYNAME, resultbuf,
                        buffer, buflen, result, h_errnop);
 }