aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-subvolume.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-subvolume.c
parentecbf1339a63e99a8ef7d5ddc334e38a39f291d3d (diff)
downloadbtrfs-progs-2b7cdab42529bc4ed4c36a3659504e50f0ef700c.tar.gz
btrfs-progs-2b7cdab42529bc4ed4c36a3659504e50f0ef700c.tar.xz
btrfs-progs-2b7cdab42529bc4ed4c36a3659504e50f0ef700c.zip
btrfs-progs: make getopt tables static const
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index 97293fd..a31cb1b 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -223,7 +223,7 @@ static int cmd_subvol_delete(int argc, char **argv)
optind = 1;
while (1) {
int c;
- struct option long_options[] = {
+ static const struct option long_options[] = {
{"commit-after", no_argument, NULL, 'c'}, /* commit mode 1 */
{"commit-each", no_argument, NULL, 'C'}, /* commit mode 2 */
{NULL, 0, NULL, 0}
@@ -403,7 +403,7 @@ static int cmd_subvol_list(int argc, char **argv)
optind = 1;
while(1) {
int c;
- struct option long_options[] = {
+ static const struct option long_options[] = {
{"sort", 1, NULL, 'S'},
{NULL, 0, NULL, 0}
};