mount: const'antize the mountPair struct
authorRobert Swiecki <robert@swiecki.net>
Thu, 26 Oct 2017 00:29:15 +0000 (02:29 +0200)
committerRobert Swiecki <robert@swiecki.net>
Thu, 26 Oct 2017 00:29:15 +0000 (02:29 +0200)
mount.c

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[] = {
+       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},