diff options
author | David Sterba <dsterba@suse.cz> | 2015-01-19 13:44:49 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-01-19 13:44:49 +0100 |
commit | 2b7cdab42529bc4ed4c36a3659504e50f0ef700c (patch) | |
tree | 6c87c39708753b1f5bfb645fa5eed1c6f04b56b3 /cmds-balance.c | |
parent | ecbf1339a63e99a8ef7d5ddc334e38a39f291d3d (diff) |
btrfs-progs: make getopt tables static const
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-balance.c')
-rw-r--r-- | cmds-balance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-balance.c b/cmds-balance.c index 5de51bd4..7524f338 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} }; |