diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-02-03 21:50:25 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-04 09:49:06 +0100 |
commit | 169b90f90b518b2ca2d4bc445d6bfb05b57a20df (patch) | |
tree | ecea1f1fbb78c90da53bf9e3c2a01427d4a8a4fd /swaynag | |
parent | 8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5 (diff) |
Make command line option lists const
Diffstat (limited to 'swaynag')
-rw-r--r-- | swaynag/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
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'}, |