From ccf59123b72b01149063d5864ef61077786c033e Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Sun, 15 Nov 2009 03:53:19 -0800 Subject: [PATCH] make command line options const The getopt_long call allows a const struct option, so mark ours const too. --- src/helper/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, -- 2.39.5