From nobody Wed Dec 29 22:01:08 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 BA32F1913F70; Wed, 29 Dec 2021 22:01:08 +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 4JPQMm3SRyz3M5h; Wed, 29 Dec 2021 22:01:08 +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 56E864A56; Wed, 29 Dec 2021 22:01:08 +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 1BTM18Xd008678; Wed, 29 Dec 2021 22:01:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BTM18k4008677; Wed, 29 Dec 2021 22:01:08 GMT (envelope-from git) Date: Wed, 29 Dec 2021 22:01:08 GMT Message-Id: <202112292201.1BTM18k4008677@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Motin Subject: git: 62ed2d0152dc - main - libc: Fix build with -DNS_REREAD_CONF. 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: mav X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 62ed2d0152dce6da883fef753e0995e6d85e0cf1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640815268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LjKHzxozy3WJuZ6jTPFdezbkjNX0ifgBj2WGb8p+3gE=; b=biYZZVWwjmdiRoi+hqO+y947EHmA1W50Kaa3M5brlMHdL/spxq5228rrF+dnxHIyZ68ubM 15h11u1NDfgv+1X+/yS5T8Z7EFU4/2z9Wzv+lUYJ0Qoqji8OeoTH/17vV1D90pwMZnKk0k E+Y3nlARlPuYUqyWl4kFv5XCtOnWISQEDdIef1QcXB9jYAsMEFraR9KHZsXj1fe8s4WaIf 4xa6QJWdN+vWX01rURtbAh2FMOwrPoMfFergpris0C2PLVP3mlwfSkrERNWt7OaT9CfLiz IweRNxGyt2InmuBe3LLBPvpJDPEHuJAVK0sb9PohrPRdSagt5dIkbh/nHER3rQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640815268; a=rsa-sha256; cv=none; b=J2fjSxB/IyYEbqa14wXz/izwqj86rewOjHqmuT51nC4gh+U8QanMx0s6q9D7vnmPoNiyuD /YiWsvs2SPbDAfJE4xjaRq+vAoy2Ls5iMGmMpatPkLNBfQYfUuSOXXdVsLKLeNlgs51qu5 XeEexMWULnDt1V56wD7H9WFb8n7zrWsZo282IyInH0p4i8+xBZKCrTfhZVSU381HmwHSYf 6+/XKKwK+dc45w9I2p7XCaHcSz+p7Gg6h4+PT1OueeVW9dc3KuTQZ9wGXIRLpqurBOmCSt DaO2N7uedgnurXV8Wff4g6Fnv+tnW2Ybv1f70BESEg8vX1tHU3TO8W6gOOsApQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=62ed2d0152dce6da883fef753e0995e6d85e0cf1 commit 62ed2d0152dce6da883fef753e0995e6d85e0cf1 Author: Alexander Motin AuthorDate: 2021-12-29 22:00:17 +0000 Commit: Alexander Motin CommitDate: 2021-12-29 22:01:05 +0000 libc: Fix build with -DNS_REREAD_CONF. MFC after: 3 days --- lib/libc/net/nsdispatch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libc/net/nsdispatch.c b/lib/libc/net/nsdispatch.c index b0f80d079b0b..ada7ac606e15 100644 --- a/lib/libc/net/nsdispatch.c +++ b/lib/libc/net/nsdispatch.c @@ -335,7 +335,9 @@ static int nss_configure(void) { static time_t confmod; +#ifndef NS_REREAD_CONF static int already_initialized = 0; +#endif struct stat statbuf; int result, isthreaded; const char *path;