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

@ -343,7 +343,7 @@ int main(int argc, char **argv) {
sway_log_init(SWAY_INFO, NULL);
static struct option long_options[] = {
static const struct option long_options[] = {
{"help", no_argument, NULL, 'h'},
{"monitor", no_argument, NULL, 'm'},
{"pretty", no_argument, NULL, 'p'},