mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 11:01:14 -03:00
Mark short_options as const everywhere
These were needlessly mutable file-scoped variables.
This commit is contained in:
@@ -39,7 +39,7 @@ struct functions_cmd_opts_t {
|
||||
wchar_t *handlers_type = NULL;
|
||||
wchar_t *description = NULL;
|
||||
};
|
||||
static const wchar_t *short_options = L":HDacd:ehnqv";
|
||||
static const wchar_t *const short_options = L":HDacd:ehnqv";
|
||||
static const struct woption long_options[] = {
|
||||
{L"erase", no_argument, NULL, 'e'}, {L"description", required_argument, NULL, 'd'},
|
||||
{L"names", no_argument, NULL, 'n'}, {L"all", no_argument, NULL, 'a'},
|
||||
|
||||
Reference in New Issue
Block a user