summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2023-11-15 20:23:20 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2023-11-15 20:23:20 +0000
commitf7f9b0d95c86052cdbc623221e1295ac77367b81 (patch)
treedeac78b3374be63c25ddc84bdab44206a5a19f17 /sys/kern
parent144e76688ef2c3ec189a90e969bfbb44fc361d15 (diff)
Constify disk_map()'s path argument
The disklabel UID passed in is not modified, reflect that and allow callers using 'const char *'. OK miod
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index f90d41d14a5..bf169beff2e 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.271 2023/02/10 07:00:12 miod Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.272 2023/11/15 20:23:19 kn Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -1754,7 +1754,7 @@ done:
}
int
-disk_map(char *path, char *mappath, int size, int flags)
+disk_map(const char *path, char *mappath, int size, int flags)
{
struct disk *dk, *mdk;
u_char uid[8];