From 1aeb7e2b426e7a94cdd4f83c4337f44c0f5a2ca8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 14 May 2024 23:59:05 +0200 Subject: Add encoding-generic macros --- lib/cli/optparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/cli') 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++; -- cgit v1.2.3