1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

const: lvmlockctl options

This commit is contained in:
Zdenek Kabelac 2024-05-03 20:17:39 +02:00
parent 9a9db862a4
commit f65f5e1c22

View File

@ -940,7 +940,7 @@ static int read_options(int argc, char *argv[])
int option_index = 0; int option_index = 0;
int c; int c;
static struct option long_options[] = { static const struct option _long_options[] = {
{"help", no_argument, 0, 'h' }, {"help", no_argument, 0, 'h' },
{"quit", no_argument, 0, 'q' }, {"quit", no_argument, 0, 'q' },
{"info", no_argument, 0, 'i' }, {"info", no_argument, 0, 'i' },
@ -962,7 +962,7 @@ static int read_options(int argc, char *argv[])
} }
while (1) { while (1) {
c = getopt_long(argc, argv, "hqidE:D:w:k:r:Se", long_options, &option_index); c = getopt_long(argc, argv, "hqidE:D:w:k:r:Se", _long_options, &option_index);
if (c == -1) if (c == -1)
break; break;