aboutsummaryrefslogtreecommitdiff
path: root/swaymsg
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 /swaymsg
parent8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5 (diff)
Make command line option lists const
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index 60536e48..574d3b75 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -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'},