Mark short_options as const everywhere

These were needlessly mutable file-scoped variables.
This commit is contained in:
ridiculousfish
2018-09-28 23:45:56 -04:00
parent f465760d1f
commit d7b2576fb5
22 changed files with 22 additions and 22 deletions

View File

@@ -37,7 +37,7 @@ struct function_cmd_opts_t {
// This command is atypical in using the "+" (REQUIRE_ORDER) option for flag parsing.
// This is needed due to the semantics of the -a/--argument-names flag.
static const wchar_t *short_options = L"+:a:d:e:hj:p:s:v:w:SV:";
static const wchar_t *const short_options = L"+:a:d:e:hj:p:s:v:w:SV:";
static const struct woption long_options[] = {{L"description", required_argument, NULL, 'd'},
{L"on-signal", required_argument, NULL, 's'},
{L"on-job-exit", required_argument, NULL, 'j'},