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://git.sur5r.net/?a=commitdiff_plain;h=ccf59123b72b01149063d5864ef61077786c033e;p=openocd 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 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},