aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-07-02 21:04:33 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-07-02 21:04:33 +0000
commit8d7c11a050bca2b3dbbff813cc79b91f4e8c8d24 (patch)
tree8203c38a76fe4fedd1446435de8a5274bf54938e
parentfee051d3336aa686f9e6ff31917c5dc8cf13ec61 (diff)
downloadfetchmail-8d7c11a050bca2b3dbbff813cc79b91f4e8c8d24.tar.gz
fetchmail-8d7c11a050bca2b3dbbff813cc79b91f4e8c8d24.tar.bz2
fetchmail-8d7c11a050bca2b3dbbff813cc79b91f4e8c8d24.zip
Optimization time.
svn path=/trunk/; revision=1145
-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 },