diff options
author | Karel Zak | 2011-03-03 15:00:30 +0100 |
---|---|---|
committer | Karel Zak | 2011-03-03 15:00:30 +0100 |
commit | 6c7d5ae9a2338be35cfab0fd8379a9f58c4f8c36 (patch) | |
tree | b2e95024812c05b13b7102a104ff8277b61fe1f0 /sys-utils/unshare.c | |
parent | docs: update TODO file (diff) | |
download | kernel-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 'sys-utils/unshare.c')
-rw-r--r-- | sys-utils/unshare.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index 343a86ee3..7a68e2cbb 100644 --- a/sys-utils/unshare.c +++ b/sys-utils/unshare.c @@ -70,7 +70,7 @@ static void usage(int status) int main(int argc, char *argv[]) { - struct option longopts[] = { + static const struct option longopts[] = { { "help", no_argument, 0, 'h' }, { "mount", no_argument, 0, 'm' }, { "uts", no_argument, 0, 'u' }, |