Skip to content

Commit

Permalink
selinux: constify write_op[]
Browse files Browse the repository at this point in the history
write_op[] is never modified, so make it 'const'.

Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
ebiggers authored and pcmoore committed Jul 17, 2018
1 parent 67b0b4e commit 631d2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/selinuxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ static ssize_t sel_write_relabel(struct file *file, char *buf, size_t size);
static ssize_t sel_write_user(struct file *file, char *buf, size_t size);
static ssize_t sel_write_member(struct file *file, char *buf, size_t size);

static ssize_t (*write_op[])(struct file *, char *, size_t) = {
static ssize_t (*const write_op[])(struct file *, char *, size_t) = {
[SEL_ACCESS] = sel_write_access,
[SEL_CREATE] = sel_write_create,
[SEL_RELABEL] = sel_write_relabel,
Expand Down

0 comments on commit 631d2b4

Please sign in to comment.