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 --- sys-utils/setarch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/setarch.c') diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 13b6fcd09..76f743fe5 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -84,7 +84,7 @@ /* Options --3gb and --4gb are for compatibitity with an old Debian setarch implementation. */ -struct option longopts[] = +static const struct option longopts[] = { { "help", 0, 0, 'h' }, { "verbose", 0, 0, 'v' }, -- cgit v1.2.3-55-g7522