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-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds-restore.c') diff --git a/cmds-restore.c b/cmds-restore.c index 795332db..a07e61a1 100644 --- a/cmds-restore.c +++ b/cmds-restore.c @@ -1167,7 +1167,7 @@ int cmd_restore(int argc, char **argv) while (1) { int opt; int option_index = 0; - static struct option long_options[] = { + static const struct option long_options[] = { { "path-regex", 1, NULL, 256}, { "dry-run", 0, NULL, 'D'}, { NULL, 0, NULL, 0} -- cgit v1.2.3