From: Zachary T Welch Date: Sun, 15 Nov 2009 11:53:19 +0000 (-0800) Subject: make command line options const X-Git-Tag: v0.4.0-rc1~558 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=ccf59123b72b01149063d5864ef61077786c033e;hp=91ac164d95e1101120b938c684b78934d23dd51c make command line options const The getopt_long call allows a const struct option, so mark ours const too. --- diff --git a/src/helper/options.c b/src/helper/options.c index e26782ff93..874196eabc 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},