From 8d7c11a050bca2b3dbbff813cc79b91f4e8c8d24 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 2 Jul 1997 21:04:33 +0000 Subject: Optimization time. svn path=/trunk/; revision=1145 --- options.c | 7 +++++-- 1 file 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 }, -- cgit v1.2.3