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-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmds-device.c') 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 }, }; -- cgit v1.2.3