summaryrefslogtreecommitdiff
path: root/src/helper/options.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-15 03:53:19 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-16 15:47:08 -0800
commitccf59123b72b01149063d5864ef61077786c033e (patch)
tree314e50ae7d17b6c18ef116ebd5559781dcd1b2ad /src/helper/options.c
parent91ac164d95e1101120b938c684b78934d23dd51c (diff)
downloadopenocd+libswd-ccf59123b72b01149063d5864ef61077786c033e.tar.gz
openocd+libswd-ccf59123b72b01149063d5864ef61077786c033e.tar.bz2
openocd+libswd-ccf59123b72b01149063d5864ef61077786c033e.tar.xz
openocd+libswd-ccf59123b72b01149063d5864ef61077786c033e.zip
make command line options const
The getopt_long call allows a const struct option, so mark ours const too.
Diffstat (limited to 'src/helper/options.c')
-rw-r--r--src/helper/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/options.c b/src/helper/options.c
index e26782ff..874196ea 100644
--- 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},