Commit 3510c5cf authored by Masahiro Yamada's avatar Masahiro Yamada

gen_init_cpio: add static const qualifiers

Add 'const' to constant arrays. I also added missing 'static'.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
parent 88f5e1e6
...@@ -188,7 +188,7 @@ struct generic_type { ...@@ -188,7 +188,7 @@ struct generic_type {
mode_t mode; mode_t mode;
}; };
static struct generic_type generic_type_table[] = { static const struct generic_type generic_type_table[] = {
[GT_DIR] = { [GT_DIR] = {
.type = "dir", .type = "dir",
.mode = S_IFDIR .mode = S_IFDIR
...@@ -491,7 +491,7 @@ static void usage(const char *prog) ...@@ -491,7 +491,7 @@ static void usage(const char *prog)
prog); prog);
} }
struct file_handler file_handler_table[] = { static const struct file_handler file_handler_table[] = {
{ {
.type = "file", .type = "file",
.handler = cpio_mkfile_line, .handler = cpio_mkfile_line,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment