From 2b7cdab42529bc4ed4c36a3659504e50f0ef700c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 19 Jan 2015 13:44:49 +0100 Subject: btrfs-progs: make getopt tables static const Signed-off-by: David Sterba --- cmds-balance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmds-balance.c') diff --git a/cmds-balance.c b/cmds-balance.c index 5de51bd..7524f33 100644 --- a/cmds-balance.c +++ b/cmds-balance.c @@ -390,7 +390,7 @@ static int cmd_balance_start(int argc, char **argv) optind = 1; while (1) { int longindex; - static struct option longopts[] = { + static const struct option longopts[] = { { "data", optional_argument, NULL, 'd'}, { "metadata", optional_argument, NULL, 'm' }, { "system", optional_argument, NULL, 's' }, @@ -662,7 +662,7 @@ static int cmd_balance_status(int argc, char **argv) optind = 1; while (1) { int longindex; - static struct option longopts[] = { + static const struct option longopts[] = { { "verbose", no_argument, NULL, 'v' }, { NULL, no_argument, NULL, 0} }; -- cgit v1.2.1