From: krw Date: Mon, 19 Jul 2021 19:30:35 +0000 (+0000) Subject: MBR_protective_mbr() can take a const struct mbr *. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f32c3c174f8a8fd1d4c2d8b44634c01896f388a0;p=openbsd MBR_protective_mbr() can take a const struct mbr *. No functional change. --- diff --git a/sbin/fdisk/mbr.c b/sbin/fdisk/mbr.c index a863df63ec2..fe291a99856 100644 --- a/sbin/fdisk/mbr.c +++ b/sbin/fdisk/mbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mbr.c,v 1.91 2021/07/19 19:23:50 krw Exp $ */ +/* $OpenBSD: mbr.c,v 1.92 2021/07/19 19:30:35 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -37,7 +37,7 @@ struct mbr initial_mbr; static int gpt_chk_mbr(struct dos_partition *, uint64_t); int -MBR_protective_mbr(struct mbr *mbr) +MBR_protective_mbr(const struct mbr *mbr) { struct dos_partition dp[NDOSPART], dos_partition; int i; diff --git a/sbin/fdisk/mbr.h b/sbin/fdisk/mbr.h index b1d5516e778..1a143c04869 100644 --- a/sbin/fdisk/mbr.h +++ b/sbin/fdisk/mbr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mbr.h,v 1.38 2021/07/19 19:23:50 krw Exp $ */ +/* $OpenBSD: mbr.h,v 1.39 2021/07/19 19:30:35 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -37,6 +37,6 @@ void MBR_init(struct mbr *); void MBR_init_GPT(struct mbr *); int MBR_read(const uint64_t, const uint64_t, struct mbr *); int MBR_write(const struct mbr *); -int MBR_protective_mbr(struct mbr *); +int MBR_protective_mbr(const struct mbr *); #endif /* _MBR_H */