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 /text-utils | |
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 'text-utils')
-rw-r--r-- | text-utils/column.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/column.c b/text-utils/column.c index 5c6db257e..fdd28640d 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -90,7 +90,7 @@ wchar_t **list; /* array of pointers to records */ wchar_t default_separator[] = { '\t', ' ', 0 }; wchar_t *separator = default_separator; /* field separator for table option */ -struct option longopts[] = +static const struct option longopts[] = { { "help", 0, 0, 'h' }, { "columns", 0, 0, 'c' }, |