summaryrefslogtreecommitdiff
path: root/cmds-device.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-01-19 13:44:49 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-19 13:44:49 +0100
commit2b7cdab42529bc4ed4c36a3659504e50f0ef700c (patch)
tree6c87c39708753b1f5bfb645fa5eed1c6f04b56b3 /cmds-device.c
parentecbf1339a63e99a8ef7d5ddc334e38a39f291d3d (diff)
btrfs-progs: make getopt tables static const
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-device.c')
-rw-r--r--cmds-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-device.c b/cmds-device.c
index 9dd52a4b..ba9e6b3e 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -56,7 +56,7 @@ static int cmd_add_dev(int argc, char **argv)
while (1) {
int long_index;
- static struct option long_options[] = {
+ static const struct option long_options[] = {
{ "nodiscard", optional_argument, NULL, 'K'},
{ "force", no_argument, NULL, 'f'},
{ 0, 0, 0, 0 }
@@ -214,7 +214,7 @@ static int cmd_scan_dev(int argc, char **argv)
optind = 1;
while (1) {
int long_index;
- static struct option long_options[] = {
+ static const struct option long_options[] = {
{ "all-devices", no_argument, NULL, 'd'},
{ 0, 0, 0, 0 },
};