Date: Thu, 23 Apr 2026 10:33:27 +0000 From: Martin Matuska <mm@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav <des@FreeBSD.org> Subject: git: 200b48c5e8be - stable/13 - libarchive: Staticize some variables Message-ID: <69e9f577.3cf6f.26f741a5@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/13 has been updated by mm: URL: https://cgit.FreeBSD.org/src/commit/?id=200b48c5e8be2151bdff9daea0d01ba1a6375d5d commit 200b48c5e8be2151bdff9daea0d01ba1a6375d5d Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2026-04-18 08:25:35 +0000 Commit: Martin Matuska <mm@FreeBSD.org> CommitDate: 2026-04-23 09:49:15 +0000 libarchive: Staticize some variables This code was not being built due to errors in our libarchive configuration. Now that those have been addressed, staticize some variables that trip a “no previous extern declaration” error. This is a subset of upstream PR 2962. MFC after: 1 week Reviewed by: mm Differential Revision: https://reviews.freebsd.org/D56471 (cherry picked from commit 7e9d974bc023755161742f66c8c77546bab88586) --- contrib/libarchive/test_utils/test_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/libarchive/test_utils/test_main.c b/contrib/libarchive/test_utils/test_main.c index 1f641bbe8db7..f7364c0ba4e8 100644 --- a/contrib/libarchive/test_utils/test_main.c +++ b/contrib/libarchive/test_utils/test_main.c @@ -187,10 +187,10 @@ const char *testprog; #ifdef RUN_TEST_UNPRIV /* Unprivileged user to run as */ -const char *tuser = "nobody"; +static const char *tuser = "nobody"; /* Original and test credentials */ -uid_t ouid, tuid; -uid_t ogid, tgid; +static uid_t ouid, tuid; +static uid_t ogid, tgid; #endif #if defined(_WIN32) && !defined(__CYGWIN__)home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e9f577.3cf6f.26f741a5>
