summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2020-11-14 20:53:31 +0000
committerguenther <guenther@openbsd.org>2020-11-14 20:53:31 +0000
commit598e0fa840a6086bb9e40d03de1b9ba67d23b3d8 (patch)
tree730f2466fce6e506bbc798555ff94b206e2e3c5d /sys
parentMake sure not to replace 0.0.0.0 with dynamic address if it is a a network (diff)
downloadwireguard-openbsd-598e0fa840a6086bb9e40d03de1b9ba67d23b3d8.tar.xz
wireguard-openbsd-598e0fa840a6086bb9e40d03de1b9ba67d23b3d8.zip
Constify dktypenames and fstypenames in libc.
Adjust variable declaration in disklabel to match. ok millert@ deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/disklabel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h
index 0d13a3fe9d0..f1034e6a209 100644
--- a/sys/sys/disklabel.h
+++ b/sys/sys/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.76 2020/05/10 00:56:06 guenther Exp $ */
+/* $OpenBSD: disklabel.h,v 1.77 2020/11/14 20:53:31 guenther Exp $ */
/* $NetBSD: disklabel.h,v 1.41 1996/05/10 23:07:37 mark Exp $ */
/*
@@ -211,7 +211,7 @@ struct __partitionv0 { /* old (v0) partition table entry */
#define DTYPE_RDROOT 15 /* ram disk root */
#ifdef DKTYPENAMES
-static char *dktypenames[] = {
+static const char * const dktypenames[] = {
"unknown",
"SMD",
"MSCP",
@@ -262,7 +262,7 @@ static char *dktypenames[] = {
#define FS_UDF 21 /* UDF (DVD) filesystem */
#ifdef DKTYPENAMES
-static char *fstypenames[] = {
+static const char * const fstypenames[] = {
"unused",
"swap",
"Version6",