aboutsummaryrefslogtreecommitdiff
path: root/swaybar
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 /swaybar
parent8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5 (diff)
Make command line option lists const
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
index 5c36d66b..a44c1e63 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -18,7 +18,7 @@ int main(int argc, char **argv) {
char *socket_path = NULL;
bool debug = false;
- static struct option long_options[] = {
+ static const struct option long_options[] = {
{"help", no_argument, NULL, 'h'},
{"version", no_argument, NULL, 'v'},
{"socket", required_argument, NULL, 's'},