git: 0bf7f99b2a1f - main - res_init: remove unused inet_makeaddr with IN_LOOPBACKNET

From: Mike Karels <karels_at_FreeBSD.org>
Date: Tue, 09 Nov 2021 15:36:04 UTC
The branch main has been updated by karels:

URL: https://cgit.FreeBSD.org/src/commit/?id=0bf7f99b2a1f50fa68e167269a633b4b5451fa35

commit 0bf7f99b2a1f50fa68e167269a633b4b5451fa35
Author:     Mike Karels <karels@FreeBSD.org>
AuthorDate: 2021-10-27 03:33:36 +0000
Commit:     Mike Karels <karels@FreeBSD.org>
CommitDate: 2021-11-09 15:33:48 +0000

    res_init: remove unused inet_makeaddr with IN_LOOPBACKNET
    
    Remove code that is ifdefed out on USELOOPBACK, which uses historical
    class.  No functional change intended.
    
    MFC after:      1 month
    Differential Revision: https://reviews.freebsd.org/D32712
---
 lib/libc/resolv/res_init.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c
index 515c86c2378d..274ffbf999d6 100644
--- a/lib/libc/resolv/res_init.c
+++ b/lib/libc/resolv/res_init.c
@@ -202,11 +202,7 @@ __res_vinit(res_state statp, int preinit) {
 	statp->id = res_nrandomid(statp);
 
 	memset(u, 0, sizeof(u));
-#ifdef USELOOPBACK
-	u[nserv].sin.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1);
-#else
 	u[nserv].sin.sin_addr.s_addr = INADDR_ANY;
-#endif
 	u[nserv].sin.sin_family = AF_INET;
 	u[nserv].sin.sin_port = htons(NAMESERVER_PORT);
 #ifdef HAVE_SA_LEN
@@ -214,11 +210,7 @@ __res_vinit(res_state statp, int preinit) {
 #endif
 	nserv++;
 #ifdef HAS_INET6_STRUCTS
-#ifdef USELOOPBACK
-	u[nserv].sin6.sin6_addr = in6addr_loopback;
-#else
 	u[nserv].sin6.sin6_addr = in6addr_any;
-#endif
 	u[nserv].sin6.sin6_family = AF_INET6;
 	u[nserv].sin6.sin6_port = htons(NAMESERVER_PORT);
 #ifdef HAVE_SA_LEN