diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2026-02-19 23:58:49 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2026-02-19 23:58:49 -0500 |
| commit | b780cff8e43bb9834ecd44f33ae8d33bb8528d82 (patch) | |
| tree | 69067a393b73a29e2e811f782872c48532e987af /src/stdlib/cli.c | |
| parent | fde2d5876236c9048ee1112be90c8af41c910149 (diff) | |
Code cleanup
Diffstat (limited to 'src/stdlib/cli.c')
| -rw-r--r-- | src/stdlib/cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib/cli.c b/src/stdlib/cli.c index e30f7ced..29a16634 100644 --- a/src/stdlib/cli.c +++ b/src/stdlib/cli.c @@ -53,7 +53,7 @@ static bool pop_boolean_cli_flag(List_t *args, char short_flag, const char *flag return true; } } else if (short_flag && arg[0] == '-' && arg[1] != '-' && strchr(arg + 1, short_flag)) { - char *loc = strchr(arg + 1, short_flag); + const char *loc = strchr(arg + 1, short_flag); if (loc[1] == '=') { // Case: -f=yes|no|true|false|on|off|1|0 OptionalBool_t b = Bool$parse(Text$from_str(loc + 2), NULL); @@ -347,7 +347,7 @@ bool pop_cli_flag(List_t *args, char short_flag, const char *flag, void *dest, c return true; } } else if (short_flag && arg[0] == '-' && arg[1] != '-' && strchr(arg + 1, short_flag)) { - char *loc = strchr(arg + 1, short_flag); + const char *loc = strchr(arg + 1, short_flag); char short_str[2] = {short_flag, '\0'}; if (loc[1] == '=') { // Case: -f=... |
