From f65f5e1c223539aed6f073caf6d765f45770d8c1 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 3 May 2024 20:17:39 +0200 Subject: [PATCH] const: lvmlockctl options --- daemons/lvmlockd/lvmlockctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemons/lvmlockd/lvmlockctl.c b/daemons/lvmlockd/lvmlockctl.c index 45569e694..8f6ad2804 100644 --- a/daemons/lvmlockd/lvmlockctl.c +++ b/daemons/lvmlockd/lvmlockctl.c @@ -940,7 +940,7 @@ static int read_options(int argc, char *argv[]) int option_index = 0; int c; - static struct option long_options[] = { + static const struct option _long_options[] = { {"help", no_argument, 0, 'h' }, {"quit", no_argument, 0, 'q' }, {"info", no_argument, 0, 'i' }, @@ -962,7 +962,7 @@ static int read_options(int argc, char *argv[]) } 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) break;