diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-04-18 08:25:35 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-04-18 08:25:35 +0000 |
| commit | 7e9d974bc023755161742f66c8c77546bab88586 (patch) | |
| tree | fb9552b59ee8c970b788bbbc6fa55334b7146f4f | |
| parent | 05bbe5e3883492dd2afa52039da1fac45c5059a0 (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
| -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__) |
