diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-10-12 11:55:14 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-10-13 02:00:09 +0000 |
commit | 3510c5cf4276c3d7bafeb20eae64f1a7a6da8fdf (patch) | |
tree | a80d10fba20210dd6100ad5c6c36a5f59b1d7741 | |
parent | 88f5e1e66253fc4acd3f68eb4d356fa4653a7bf9 (diff) | |
download | linux-3510c5cf4276c3d7bafeb20eae64f1a7a6da8fdf.tar.gz linux-3510c5cf4276c3d7bafeb20eae64f1a7a6da8fdf.tar.bz2 linux-3510c5cf4276c3d7bafeb20eae64f1a7a6da8fdf.zip |
gen_init_cpio: add static const qualifiers
Add 'const' to constant arrays. I also added missing 'static'.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
-rw-r--r-- | usr/gen_init_cpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c index 03b21189d58b..bf5b98c6cf8d 100644 --- a/usr/gen_init_cpio.c +++ b/usr/gen_init_cpio.c @@ -188,7 +188,7 @@ struct generic_type { mode_t mode; }; -static struct generic_type generic_type_table[] = { +static const struct generic_type generic_type_table[] = { [GT_DIR] = { .type = "dir", .mode = S_IFDIR @@ -491,7 +491,7 @@ static void usage(const char *prog) prog); } -struct file_handler file_handler_table[] = { +static const struct file_handler file_handler_table[] = { { .type = "file", .handler = cpio_mkfile_line, |