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:
1 parent
b92f14a220
commit
bfa16c05a2
1 file changed
+3
-3
@@ -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__)
|
||||
|
||||
Reference in new issue
Block a user