Make command line option lists const

This commit is contained in:
Manuel Stoeckl 2021-02-03 21:50:25 -05:00 committed by Simon Ser
parent 8f2cd3236f
commit 169b90f90b
4 changed files with 4 additions and 4 deletions

View file

@ -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'},