mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-03 04:05:25 +08:00
getopt long_options to be const
This commit is contained in:
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' },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user