From 6c7d5ae9a2338be35cfab0fd8379a9f58c4f8c36 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 3 Mar 2011 15:00:30 +0100 Subject: 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 --- text-utils/column.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text-utils/column.c') 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' }, -- cgit v1.2.3-55-g7522