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

@@ -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'},