From nobody Tue Nov 09 15:36:04 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A9AFC18489CC; Tue, 9 Nov 2021 15:36:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HpXBY0tSpz4tkG; Tue, 9 Nov 2021 15:36:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D1A55275B0; Tue, 9 Nov 2021 15:36:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1A9Fa4Uv099928; Tue, 9 Nov 2021 15:36:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1A9Fa4fY099927; Tue, 9 Nov 2021 15:36:04 GMT (envelope-from git) Date: Tue, 9 Nov 2021 15:36:04 GMT Message-Id: <202111091536.1A9Fa4fY099927@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mike Karels Subject: git: 0bf7f99b2a1f - main - res_init: remove unused inet_makeaddr with IN_LOOPBACKNET List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: karels X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0bf7f99b2a1f50fa68e167269a633b4b5451fa35 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by karels: URL: https://cgit.FreeBSD.org/src/commit/?id=0bf7f99b2a1f50fa68e167269a633b4b5451fa35 commit 0bf7f99b2a1f50fa68e167269a633b4b5451fa35 Author: Mike Karels AuthorDate: 2021-10-27 03:33:36 +0000 Commit: Mike Karels 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