diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-12-21 20:32:05 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-12-21 20:32:05 -0800 |
commit | 172f1e1b5f414da69357e109577a5fb8ba5d9fc0 (patch) | |
tree | 89b975931f8c7b13ed978b78a643a81210b97a0d | |
parent | b257e79a0732ac8e379b2b0d3dde67aa81e980b9 (diff) |
getopt long_options to be const
-rw-r--r-- | src/fish.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fish.cpp b/src/fish.cpp index 97dd751e..0a6984e4 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<std::string> *cmds) { - struct option long_options[] = + const struct option long_options[] = { { "command", required_argument, NULL, 'c' }, { "debug-level", required_argument, NULL, 'd' }, |