From 1fac5a733b9476866b7b16457d34168e91ee5d6a Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Sun, 5 Apr 2020 07:31:46 +0000 Subject: Declare pledgenames[] as const. OK deraadt@ --- usr.bin/kdump/kdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/kdump') 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)) -- cgit v1.2.3