mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Style: Mark private data 'static', correct an old comment.
MFC after: 3 days
This commit is contained in:
parent
a7cf627487
commit
d34dca65fa
1 changed files with 4 additions and 5 deletions
|
|
@ -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