aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/options.c b/options.c
index 8e1e894f..c18b4331 100644
--- a/options.c
+++ b/options.c
@@ -50,8 +50,11 @@
#define LA_MONITOR 32
#define LA_YYDEBUG 33
-static char *shortoptions = "?Vcsvd:NqL:f:i:p:UP:A:t:E:u:akKFnl:r:S:b:B:m:I:M:y";
-static struct option longoptions[] = {
+static const char *shortoptions =
+ "?Vcsvd:NqL:f:i:p:UP:A:t:E:u:akKFnl:r:S:b:B:m:I:M:y";
+
+static const struct option longoptions[] = {
+/* this can be const because all flag fields are 0 and will never get set */
{"help", no_argument, (int *) 0, LA_HELP },
{"version", no_argument, (int *) 0, LA_VERSION },
{"check", no_argument, (int *) 0, LA_CHECK },