bind-mount: Be more const-correct
When compiled with -Wwrite-strings as part of a larger project, gcc and clang both warn that we're assigning a string constant to a mutable struct member. There's actually no reason why it should be mutable, so make it const. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:

committed by
Alexander Larsson

parent
22af8f72ec
commit
55b91e2a67
@@ -86,7 +86,7 @@ decode_mountoptions (const char *options)
|
||||
int i;
|
||||
unsigned long flags = 0;
|
||||
static const struct { int flag;
|
||||
char *name;
|
||||
const char *name;
|
||||
} flags_data[] = {
|
||||
{ 0, "rw" },
|
||||
{ MS_RDONLY, "ro" },
|
||||
|
Reference in New Issue
Block a user