diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-04-18 08:25:35 +0000 |
|---|---|---|
| committer | Martin Matuska <mm@FreeBSD.org> | 2026-04-23 09:49:15 +0000 |
| commit | 200b48c5e8be2151bdff9daea0d01ba1a6375d5d (patch) | |
| tree | 12fa7142320b96a8b3bb64f5a2dd36c032ca46b2 | |
| parent | 170f7d2168a227ea1fb58f20fe543ac22d4635f2 (diff) | |
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)
| -rw-r--r-- | contrib/libarchive/test_utils/test_main.c | 6 |
1 files 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__) |
