mount: const'antize the mountPair struct
This commit is contained in:
parent
2ab64972fd
commit
c04ca63190
8
mount.c
8
mount.c
@ -232,10 +232,10 @@ static bool mountRemountRO(struct mounts_t* mpt) {
|
||||
return false;
|
||||
}
|
||||
|
||||
struct {
|
||||
unsigned long mount_flag;
|
||||
unsigned long vfs_flag;
|
||||
} mountPairs[] = {
|
||||
static struct {
|
||||
const unsigned long mount_flag;
|
||||
const unsigned long vfs_flag;
|
||||
} const mountPairs[] = {
|
||||
{MS_RDONLY, ST_RDONLY},
|
||||
{MS_NOSUID, ST_NOSUID},
|
||||
{MS_NODEV, ST_NODEV},
|
||||
|
Loading…
Reference in New Issue
Block a user