Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c2
-rw-r--r--src/util/pactree.c2
2 files changed, 2 insertions, 2 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'},
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'},