diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-05-14 23:59:05 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-05-14 23:59:05 +0200 |
commit | 1aeb7e2b426e7a94cdd4f83c4337f44c0f5a2ca8 (patch) | |
tree | b80d1751bebed6dd39c34fa0a1b832c714e57292 /lib | |
parent | a624e3343e1183aa0f2d4b05afea50eef348651a (diff) |
Add encoding-generic macros
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cli/optparse.c | 4 |
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++; |