getopt long_options to be const

This commit is contained in:
ridiculousfish 2015-12-21 20:32:05 -08:00
parent b257e79a07
commit 172f1e1b5f

@ -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) 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' }, { "command", required_argument, NULL, 'c' },
{ "debug-level", required_argument, NULL, 'd' }, { "debug-level", required_argument, NULL, 'd' },