make command line options const
authorZachary T Welch <zw@superlucidity.net>
Sun, 15 Nov 2009 11:53:19 +0000 (03:53 -0800)
committerZachary T Welch <zw@superlucidity.net>
Mon, 16 Nov 2009 23:47:08 +0000 (15:47 -0800)
The getopt_long call allows a const struct option, so mark ours
const too.

src/helper/options.c

index e26782ff937473cde80cf5bc265b373b249356f2..874196eabc5b82384a7c7c4caf7004617ca99cae 100644 (file)
@@ -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},