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

@@ -20,7 +20,7 @@ struct command_cmd_opts_t {
bool quiet = false;
bool all_paths = false;
};
static const wchar_t *short_options = L":ahqsv";
static const wchar_t *const short_options = L":ahqsv";
static const struct woption long_options[] = {{L"help", no_argument, NULL, 'h'},
{L"all", no_argument, NULL, 'a'},
{L"quiet", no_argument, NULL, 'q'},