summaryrefslogtreecommitdiffstats
path: root/misc-utils/namei.c
diff options
context:
space:
mode:
authorKarel Zak2011-03-03 15:00:30 +0100
committerKarel Zak2011-03-03 15:00:30 +0100
commit6c7d5ae9a2338be35cfab0fd8379a9f58c4f8c36 (patch)
treeb2e95024812c05b13b7102a104ff8277b61fe1f0 /misc-utils/namei.c
parentdocs: update TODO file (diff)
downloadkernel-qcow2-util-linux-6c7d5ae9a2338be35cfab0fd8379a9f58c4f8c36.tar.gz
kernel-qcow2-util-linux-6c7d5ae9a2338be35cfab0fd8379a9f58c4f8c36.tar.xz
kernel-qcow2-util-linux-6c7d5ae9a2338be35cfab0fd8379a9f58c4f8c36.zip
move struct option to .rodata
It does not make sense to have writable large arrays of "struct option" on the stack. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/namei.c')
-rw-r--r--misc-utils/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/namei.c b/misc-utils/namei.c
index 2115fe7c9..534b451c8 100644
--- a/misc-utils/namei.c
+++ b/misc-utils/namei.c
@@ -439,7 +439,7 @@ usage(int rc)
exit(rc);
}
-struct option longopts[] =
+static const struct option longopts[] =
{
{ "help", 0, 0, 'h' },
{ "mountpoints",0, 0, 'x' },