mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Style: Mark private data 'static', correct an old comment.
MFC after: 3 days
This commit is contained in:
parent
a7cf627487
commit
d34dca65fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184037
|
@ -27,8 +27,7 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
/*
|
||||
* Exercise the system-independent portion of the ACL support.
|
||||
* Check that archive_entry objects can save and restore ACL data
|
||||
* and that pax archive can save and restore ACL data.
|
||||
* Check that archive_entry objects can save and restore ACL data.
|
||||
*
|
||||
* This should work on all systems, regardless of whether local
|
||||
* filesystems support ACLs or not.
|
||||
|
@ -42,7 +41,7 @@ struct acl_t {
|
|||
const char *name; /* Name of user/group, depending on tag. */
|
||||
};
|
||||
|
||||
struct acl_t acls0[] = {
|
||||
static struct acl_t acls0[] = {
|
||||
{ ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_EXECUTE,
|
||||
ARCHIVE_ENTRY_ACL_USER_OBJ, 0, "" },
|
||||
{ ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_READ,
|
||||
|
@ -51,7 +50,7 @@ struct acl_t acls0[] = {
|
|||
ARCHIVE_ENTRY_ACL_OTHER, 0, "" },
|
||||
};
|
||||
|
||||
struct acl_t acls1[] = {
|
||||
static struct acl_t acls1[] = {
|
||||
{ ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_EXECUTE,
|
||||
ARCHIVE_ENTRY_ACL_USER_OBJ, -1, "" },
|
||||
{ ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_READ,
|
||||
|
@ -62,7 +61,7 @@ struct acl_t acls1[] = {
|
|||
ARCHIVE_ENTRY_ACL_OTHER, -1, "" },
|
||||
};
|
||||
|
||||
struct acl_t acls2[] = {
|
||||
static struct acl_t acls2[] = {
|
||||
{ ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_EXECUTE | ARCHIVE_ENTRY_ACL_READ,
|
||||
ARCHIVE_ENTRY_ACL_USER_OBJ, -1, "" },
|
||||
{ ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_READ,
|
||||
|
|
Loading…
Reference in a new issue