1
0
Fork 0

const-qualify + cleanup

This commit is contained in:
Lukas Wurzinger 2021-03-09 19:54:03 +01:00
parent 77394a61dc
commit 11cd1cf7c3
3 changed files with 38 additions and 46 deletions

View file

@ -107,11 +107,13 @@ main(int argc, char **argv)
{0}
};
struct readopt_parser rp = readopt_parser_create(
struct readopt_parser rp;
readopt_parser_init(
&rp,
opts,
opers,
(struct readopt_view_strings){
.strings = argv + 1,
.strings = (const char **)argv + 1,
.len = argc - 1
}
);