diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2022-11-09 10:26:38 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2022-11-09 10:26:38 +0000 |
commit | b3fa499ce31656bc5ea1187f6b7fa4f71bc9b7a4 (patch) | |
tree | da30d8614c61f52d7cfe9658b8727dd043f4eede /sys/kern | |
parent | 00fc8c911502f9b950eeb8e6ff066f91dd5e89ce (diff) |
gpt_get_fstype() doesn't modify its parameter so make said
parameter const.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_disk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 37e0829f07d..2e4fb92ad84 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.266 2022/11/07 10:21:17 krw Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.267 2022/11/09 10:26:37 krw Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -113,7 +113,7 @@ int gpt_get_hdr(struct buf *, void (*)(struct buf *), struct disklabel *, uint64_t, struct gpt_header *); int gpt_get_parts(struct buf *, void (*)(struct buf *), struct disklabel *, const struct gpt_header *, struct gpt_partition **); -int gpt_get_fstype(struct uuid *); +int gpt_get_fstype(const struct uuid *); int duid_equal(u_char *, u_char *); @@ -542,7 +542,7 @@ gpt_get_parts(struct buf *bp, void (*strat)(struct buf *), struct disklabel *lp, } int -gpt_get_fstype(struct uuid *uuid_part) +gpt_get_fstype(const struct uuid *uuid_part) { static int init = 0; static struct uuid uuid_openbsd, uuid_msdos, uuid_chromefs, |