diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-02-03 21:50:25 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-04 09:49:06 +0100 |
commit | 169b90f90b518b2ca2d4bc445d6bfb05b57a20df (patch) | |
tree | ecea1f1fbb78c90da53bf9e3c2a01427d4a8a4fd /swaybar | |
parent | 8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5 (diff) |
Make command line option lists const
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/main.c | 2 |
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'}, |