projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ab6497
)
mount: const'antize the mountPair struct
author
Robert Swiecki
<robert@swiecki.net>
Thu, 26 Oct 2017 00:29:15 +0000
(
02:29
+0200)
committer
Robert Swiecki
<robert@swiecki.net>
Thu, 26 Oct 2017 00:29:15 +0000
(
02:29
+0200)
mount.c
patch
|
blob
|
history
diff --git
a/mount.c
b/mount.c
index
ac14c4c
..
45f5be1
100644
(file)
--- a/
mount.c
+++ b/
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[] = {
+ st
atic st
ruct {
+
const
unsigned long mount_flag;
+
const
unsigned long vfs_flag;
+ }
const
mountPairs[] = {
{MS_RDONLY, ST_RDONLY},
{MS_NOSUID, ST_NOSUID},
{MS_NODEV, ST_NODEV},