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 --- mount/lomount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mount/lomount.c') diff --git a/mount/lomount.c b/mount/lomount.c index 0bbcbc19d..84dfb1275 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -1042,7 +1042,8 @@ main(int argc, char **argv) { int ro = 0; int pfd = -1; uintmax_t off = 0, slimit = 0; - struct option longopts[] = { + + static const struct option longopts[] = { { "all", 0, 0, 'a' }, { "set-capacity", 0, 0, 'c' }, { "detach", 0, 0, 'd' }, -- cgit v1.2.3-55-g7522