aboutsummaryrefslogtreecommitdiff
path: root/swaynag/config.c
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2021-02-03 21:50:25 -0500
committerSimon Ser <contact@emersion.fr>2021-02-04 09:49:06 +0100
commit169b90f90b518b2ca2d4bc445d6bfb05b57a20df (patch)
treeecea1f1fbb78c90da53bf9e3c2a01427d4a8a4fd /swaynag/config.c
parent8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5 (diff)
Make command line option lists const
Diffstat (limited to 'swaynag/config.c')
-rw-r--r--swaynag/config.c2
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'},