]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: make longopts[] static const
authorKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 10:07:23 +0000 (12:07 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 11:15:33 +0000 (13:15 +0200)
commitff4cf8b0132847bcad7c45ce72cbe99f52561a19
tree64f69ce2c7db132f3a01af15743c061b6c09089c
parent87935d6ee8493554804e3835f4ee69beeb67d105
agetty: make longopts[] static const

The getopt long options array is read-only, use static const
to avoid re-initializing it on every parse_args() call.

Signed-off-by: Karel Zak <kzak@redhat.com>
agetty-cmd/agetty.c