diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-04-05 07:31:46 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-04-05 07:31:46 +0000 |
commit | 1fac5a733b9476866b7b16457d34168e91ee5d6a (patch) | |
tree | f4233f529065c5c041923c63a3766232fb26da9b /usr.bin/kdump | |
parent | 2b81cb72a281b22b3a2290bdcd2b77e8605a8d82 (diff) |
Declare pledgenames[] as const.
OK deraadt@
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r-- | usr.bin/kdump/kdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index ffb9b6db3e8..1c510bfb5d2 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdump.c,v 1.141 2020/01/18 23:56:31 cheloha Exp $ */ +/* $OpenBSD: kdump.c,v 1.142 2020/04/05 07:31:45 visa Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -1375,7 +1375,7 @@ ktrexec(const char *ptr, size_t len) static void ktrpledge(struct ktr_pledge *pledge, size_t len) { - char *name = ""; + const char *name = ""; int i; if (len < sizeof(struct ktr_pledge)) |