From 1d37c19e0492ddd426c7a05c815a45b997b55498 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 8 Aug 2011 14:37:30 -0400 Subject: 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 Signed-off-by: Dan McGee --- src/util/pactree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') 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'}, -- cgit v1.2.3