libfuse: mark some data constant
authorMiklos Szeredi <miklos@szeredi.hu>
Wed, 4 Jul 2012 10:19:29 +0000 (12:19 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 4 Jul 2012 10:19:29 +0000 (12:19 +0200)
lib/fuse_lowlevel.c
lib/modules/iconv.c
lib/modules/subdir.c
lib/mount.c

index 305bbbf09eabe75abe1a61ee95875e24e14d7c56..a259f376c2731f7d109db619c24cd93ab375b4f6 100644 (file)
@@ -2467,7 +2467,7 @@ enum {
        KEY_VERSION,
 };
 
-static struct fuse_opt fuse_ll_opts[] = {
+static const struct fuse_opt fuse_ll_opts[] = {
        { "debug", offsetof(struct fuse_ll, debug), 1 },
        { "-d", offsetof(struct fuse_ll, debug), 1 },
        { "allow_root", offsetof(struct fuse_ll, allow_root), 1 },
index 1b78192c0b261e979b8a0e38e400eaf3af89d3ce..89b22e41ead749f6189942a813bd82775065fbe8 100644 (file)
@@ -592,7 +592,7 @@ static void iconv_destroy(void *data)
        free(ic);
 }
 
-static struct fuse_operations iconv_oper = {
+static const struct fuse_operations iconv_oper = {
        .destroy        = iconv_destroy,
        .init           = iconv_init,
        .getattr        = iconv_getattr,
@@ -635,7 +635,7 @@ static struct fuse_operations iconv_oper = {
        .flag_nopath = 1,
 };
 
-static struct fuse_opt iconv_opts[] = {
+static const struct fuse_opt iconv_opts[] = {
        FUSE_OPT_KEY("-h", 0),
        FUSE_OPT_KEY("--help", 0),
        { "from_code=%s", offsetof(struct iconv, from_code), 0 },
index 24dede6dbb8c35005f887d16e6d9aeadd4b14ac9..76a53fa5b76a9ecf2819764c12475e917187b121 100644 (file)
@@ -575,7 +575,7 @@ static void subdir_destroy(void *data)
        free(d);
 }
 
-static struct fuse_operations subdir_oper = {
+static const struct fuse_operations subdir_oper = {
        .destroy        = subdir_destroy,
        .init           = subdir_init,
        .getattr        = subdir_getattr,
@@ -618,7 +618,7 @@ static struct fuse_operations subdir_oper = {
        .flag_nopath = 1,
 };
 
-static struct fuse_opt subdir_opts[] = {
+static const struct fuse_opt subdir_opts[] = {
        FUSE_OPT_KEY("-h", 0),
        FUSE_OPT_KEY("--help", 0),
        { "subdir=%s", offsetof(struct subdir, base), 0 },
index be7b4cb7808d728bf5685fae572d5929a49d71fc..6a9da9eefd5641fc2b790738a1e739525016e5b5 100644 (file)
@@ -160,7 +160,7 @@ struct mount_flags {
        int on;
 };
 
-static struct mount_flags mount_flags[] = {
+static const struct mount_flags mount_flags[] = {
        {"rw",      MS_RDONLY,      0},
        {"ro",      MS_RDONLY,      1},
        {"suid",    MS_NOSUID,      0},