aboutsummaryrefslogtreecommitdiff
path: root/lib/cli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cli')
-rw-r--r--lib/cli/optparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cli/optparse.c b/lib/cli/optparse.c
index ce688cf..7134b37 100644
--- a/lib/cli/optparse.c
+++ b/lib/cli/optparse.c
@@ -104,8 +104,8 @@ rune
shortopt(struct optparser *st, const struct cli_option *opts, size_t nopts)
{
rune ch;
- const char *opt = st->_argv[st->optind];
- st->_subopt += u8tor(&ch, opt + st->_subopt + 1);
+ const char8_t *opt = st->_argv[st->optind];
+ st->_subopt += ucstor(&ch, opt + st->_subopt + 1);
if (ch == '\0') {
st->_subopt = 0;
st->optind++;