From f32c3c174f8a8fd1d4c2d8b44634c01896f388a0 Mon Sep 17 00:00:00 2001 From: krw Date: Mon, 19 Jul 2021 19:30:35 +0000 Subject: [PATCH] MBR_protective_mbr() can take a const struct mbr *. No functional change. --- sbin/fdisk/mbr.c | 4 ++-- sbin/fdisk/mbr.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.20.1