const-qualify + cleanup
This commit is contained in:
parent
77394a61dc
commit
11cd1cf7c3
3 changed files with 38 additions and 46 deletions
|
@ -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
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue