summaryrefslogtreecommitdiffstats
path: root/src/util/pactree.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-08-08 14:37:30 -0400
committerDan McGee <dan@archlinux.org>2011-08-08 16:50:03 -0500
commit1d37c19e0492ddd426c7a05c815a45b997b55498 (patch)
treeea32379fc306eb897f9742ba21d6c2911a529c81 /src/util/pactree.c
parent5136df0f393567117b84d4580737e2920cc63f57 (diff)
downloadpacman-1d37c19e0492ddd426c7a05c815a45b997b55498.tar.xz
mark option structs as const
These are never modified and even getopt_long's prototype shows this modifier on the parameter. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/util/pactree.c')
-rw-r--r--src/util/pactree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/pactree.c b/src/util/pactree.c
index 9b678631..5a27cc77 100644
--- a/src/util/pactree.c
+++ b/src/util/pactree.c
@@ -164,7 +164,7 @@ static int parse_options(int argc, char *argv[])
int opt, option_index = 0;
char *endptr = NULL;
- static struct option opts[] = {
+ static const struct option opts[] = {
{"dbpath", required_argument, 0, 'b'},
{"color", no_argument, 0, 'c'},
{"depth", required_argument, 0, 'd'},