projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91ac164
)
make command line options const
author
Zachary T Welch
<zw@superlucidity.net>
Sun, 15 Nov 2009 11:53:19 +0000
(
03:53
-0800)
committer
Zachary T Welch
<zw@superlucidity.net>
Mon, 16 Nov 2009 23:47:08 +0000
(15:47 -0800)
The getopt_long call allows a const struct option, so mark ours
const too.
src/helper/options.c
patch
|
blob
|
history
diff --git
a/src/helper/options.c
b/src/helper/options.c
index e26782ff937473cde80cf5bc265b373b249356f2..874196eabc5b82384a7c7c4caf7004617ca99cae 100644
(file)
--- a/
src/helper/options.c
+++ b/
src/helper/options.c
@@
-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},