Define the long options structure as const.
This commit is contained in:
parent
84408fef57
commit
9aba7ecce2
|
@ -196,7 +196,7 @@ static void cl_help(char **argv)
|
|||
exit(0);
|
||||
}
|
||||
|
||||
static struct option long_options[] = {
|
||||
static const struct option long_options[] = {
|
||||
{"help", no_argument, NULL, 'h'},
|
||||
{"list", no_argument, NULL, 'l'},
|
||||
{"verbose", required_argument, NULL, 'v'},
|
||||
|
|
Loading…
Reference in New Issue