From d01587d4eeab53dae56cd1a0acc027d26a93884a Mon Sep 17 00:00:00 2001 From: NRK Date: Tue, 21 May 2024 23:09:46 +0000 Subject: [PATCH] constify readonly data --- src/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index 6279191..f97fcfb 100644 --- a/src/options.c +++ b/src/options.c @@ -306,8 +306,8 @@ void optionsParse(int argc, char *argv[]) /* ensure these don't collude with single byte opts. */ OPT_FORMAT = UCHAR_MAX + 1, }; - static char stropts[] = "a:bC:cD:d:e:F:fhik::l:M:mn:opq:S:s::t:uvw:Z:z"; - static struct option lopts[] = { + static const char stropts[] = "a:bC:cD:d:e:F:fhik::l:M:mn:opq:S:s::t:uvw:Z:z"; + static const struct option lopts[] = { {"autoselect", required_argument, NULL, 'a'}, {"border", no_argument, NULL, 'b'}, {"class", required_argument, NULL, 'C'},