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:
Simon McVittie
2021-08-31 13:11:54 +01:00
committed by Alexander Larsson
parent 22af8f72ec
commit 55b91e2a67

View File

@@ -86,7 +86,7 @@ decode_mountoptions (const char *options)
int i; int i;
unsigned long flags = 0; unsigned long flags = 0;
static const struct { int flag; static const struct { int flag;
char *name; const char *name;
} flags_data[] = { } flags_data[] = {
{ 0, "rw" }, { 0, "rw" },
{ MS_RDONLY, "ro" }, { MS_RDONLY, "ro" },