mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-19 13:02:18 +10:00
make command line options const
The getopt_long call allows a const struct option, so mark ours const too.
This commit is contained in:
parent
91ac164d95
commit
ccf59123b7
@ -32,7 +32,7 @@
|
||||
|
||||
static int help_flag, version_flag;
|
||||
|
||||
static struct option long_options[] =
|
||||
static const struct option long_options[] =
|
||||
{
|
||||
{"help", no_argument, &help_flag, 1},
|
||||
{"version", no_argument, &version_flag, 1},
|
||||
|
Loading…
Reference in New Issue
Block a user