Fix signedness warnings in t/cli.cc

This commit is contained in:
Frédéric Mangano-Tarumi 2020-09-26 13:13:15 +02:00
parent 84e238a4a9
commit b369aea8d4

View File

@ -43,10 +43,10 @@ static ot::status parse_options(const std::vector<const char*>& args, ot::option
{
int argc = args.size();
char* argv[argc];
for (size_t i = 0; i < argc; ++i)
for (int i = 0; i < argc; ++i)
argv[i] = strdup(args[i]);
ot::status rc = ot::parse_options(argc, argv, opt, comments);
for (size_t i = 0; i < argc; ++i)
for (int i = 0; i < argc; ++i)
free(argv[i]);
return rc;
}