summaryrefslogtreecommitdiff
path: root/sys/kern/kern_pledge.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-04-05 07:31:46 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-04-05 07:31:46 +0000
commit1fac5a733b9476866b7b16457d34168e91ee5d6a (patch)
treef4233f529065c5c041923c63a3766232fb26da9b /sys/kern/kern_pledge.c
parent2b81cb72a281b22b3a2290bdcd2b77e8605a8d82 (diff)
Declare pledgenames[] as const.
OK deraadt@
Diffstat (limited to 'sys/kern/kern_pledge.c')
-rw-r--r--sys/kern/kern_pledge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 7bcc7636d99..56cb2ce1983 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.261 2020/02/15 09:35:48 anton Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.262 2020/04/05 07:31:45 visa Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -527,7 +527,7 @@ pledge_syscall(struct proc *p, int code, uint64_t *tval)
int
pledge_fail(struct proc *p, int error, uint64_t code)
{
- char *codes = "";
+ const char *codes = "";
int i;
struct sigaction sa;