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 --- shlibs/mount/samples/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shlibs') diff --git a/shlibs/mount/samples/mount.c b/shlibs/mount/samples/mount.c index ed3c99a9b..d7c281fcc 100644 --- a/shlibs/mount/samples/mount.c +++ b/shlibs/mount/samples/mount.c @@ -207,7 +207,7 @@ int main(int argc, char **argv) char *types = NULL; unsigned long oper = 0; - struct option longopts[] = { + static const struct option longopts[] = { { "all", 0, 0, 'a' }, { "fake", 0, 0, 'f' }, { "fork", 0, 0, 'F' }, -- cgit v1.2.3-55-g7522