test_main: Staticize some variables

These variables are not used outside test_main, so they should be static.

Fixes:		a252c60308 ("test_main: Run tests as unprivileged user")
This commit is contained in:
Dag-Erling Smørgrav committed 2026-04-17 18:46:59 +02:00
1 parent b92f14a220
commit bfa16c05a2
1 file changed
+3 -3
+3 -3
View File
@@ -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__)