From 3b5acfac06e1679234c2a5c2899f0f501edb3740 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 4 Jul 2012 12:19:29 +0200 Subject: [PATCH] libfuse: mark some data constant --- lib/fuse_lowlevel.c | 2 +- lib/modules/iconv.c | 4 ++-- lib/modules/subdir.c | 4 ++-- lib/mount.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 305bbbf..a259f37 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -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 }, diff --git a/lib/modules/iconv.c b/lib/modules/iconv.c index 1b78192..89b22e4 100644 --- a/lib/modules/iconv.c +++ b/lib/modules/iconv.c @@ -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 }, diff --git a/lib/modules/subdir.c b/lib/modules/subdir.c index 24dede6..76a53fa 100644 --- a/lib/modules/subdir.c +++ b/lib/modules/subdir.c @@ -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 }, diff --git a/lib/mount.c b/lib/mount.c index be7b4cb..6a9da9e 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -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}, -- 2.30.2