mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
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>
This commit is contained in:
parent
88f5e1e662
commit
3510c5cf42
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user