diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-08-08 14:37:30 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-08 16:50:03 -0500 |
commit | 1d37c19e0492ddd426c7a05c815a45b997b55498 (patch) | |
tree | ea32379fc306eb897f9742ba21d6c2911a529c81 /src/pacman | |
parent | 5136df0f393567117b84d4580737e2920cc63f57 (diff) |
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/pacman')
-rw-r--r-- | src/pacman/pacman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index e855203a..21ccc966 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -573,7 +573,7 @@ static int parseargs(int argc, char *argv[]) int option_index = 0; int result; const char *optstring = "DQRSTUVb:cdefghiklmnopqr:stuvwy"; - static struct option opts[] = + static const struct option opts[] = { {"database", no_argument, 0, 'D'}, {"query", no_argument, 0, 'Q'}, |