diff options
| author | Karel Zak <kzak@redhat.com> | 2011-03-03 15:00:30 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2011-03-03 15:00:30 +0100 |
| commit | 6c7d5ae9a2338be35cfab0fd8379a9f58c4f8c36 (patch) | |
| tree | b2e95024812c05b13b7102a104ff8277b61fe1f0 /misc-utils/lsblk.c | |
| parent | 63e6a3c82af8296041da7b829cbbc8d7fac1ff28 (diff) | |
| download | util-linux-6c7d5ae9a2338be35cfab0fd8379a9f58c4f8c36.tar.gz | |
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/lsblk.c')
| -rw-r--r-- | misc-utils/lsblk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 263ad95f37..3446938e35 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -890,7 +890,7 @@ int main(int argc, char *argv[]) int tt_flags = TT_FL_TREE; int i, c, status = EXIT_FAILURE; - struct option longopts[] = { + static const struct option longopts[] = { { "all", 0, 0, 'a' }, { "bytes", 0, 0, 'b' }, { "nodeps", 0, 0, 'd' }, |
