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/unshare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/unshare.c') 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' }, -- cgit v1.2.3-55-g7522