From 172f1e1b5f414da69357e109577a5fb8ba5d9fc0 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 21 Dec 2015 20:32:05 -0800 Subject: [PATCH] getopt long_options to be const --- src/fish.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fish.cpp b/src/fish.cpp index 97dd751e1..0a6984e43 100644 --- a/src/fish.cpp +++ b/src/fish.cpp @@ -352,7 +352,7 @@ static int read_init(const struct config_paths_t &paths) */ static int fish_parse_opt(int argc, char **argv, std::vector *cmds) { - struct option long_options[] = + const struct option long_options[] = { { "command", required_argument, NULL, 'c' }, { "debug-level", required_argument, NULL, 'd' },