From 169b90f90b518b2ca2d4bc445d6bfb05b57a20df Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Wed, 3 Feb 2021 21:50:25 -0500 Subject: Make command line option lists const --- swaynag/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swaynag') diff --git a/swaynag/config.c b/swaynag/config.c index ca7f4eb2..c6b4e431 100644 --- a/swaynag/config.c +++ b/swaynag/config.c @@ -51,7 +51,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag, TO_PADDING_BTN, }; - static struct option opts[] = { + static const struct option opts[] = { {"button", required_argument, NULL, 'b'}, {"button-no-terminal", required_argument, NULL, 'B'}, {"button-dismiss", required_argument, NULL, 'z'}, -- cgit v1.2.3