]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lastlog2: make longopts[] static-const
authorKarel Zak <kzak@redhat.com>
Tue, 20 Feb 2024 09:20:10 +0000 (10:20 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Feb 2024 09:20:10 +0000 (10:20 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lastlog2.c

index b80f07b1834a53217d91c82f115ea312b1c56ada..6aacd031958201de8554262e57f612f919d2609f 100644 (file)
@@ -140,7 +140,7 @@ check_user(const char *name)
 int
 main(int argc, char **argv)
 {
-       struct option const longopts[] = {
+       static const struct option longopts[] = {
                {"before",   required_argument, NULL, 'b'},
                {"clear",    no_argument,       NULL, 'C'},
                {"database", required_argument, NULL, 'd'},