From 6abd62aee76a1637185997383e88914b9ea1b1fe Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sun, 18 Jul 2021 21:40:14 +0000 Subject: Don't save the prt_scyl/prt_ecyl values, change them, use them and then restore them. Just change/use the saved values and skip the restoring. Allows PRT_make() to add 'const' to its struct mbr parameter, and thus allows MBR_make() to add 'const' to its struct mbr parameter. No intentional functional change. --- sbin/fdisk/mbr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/fdisk/mbr.h') diff --git a/sbin/fdisk/mbr.h b/sbin/fdisk/mbr.h index d097e9c1d3b..bc58b4a2cdd 100644 --- a/sbin/fdisk/mbr.h +++ b/sbin/fdisk/mbr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mbr.h,v 1.36 2021/07/18 12:41:00 krw Exp $ */ +/* $OpenBSD: mbr.h,v 1.37 2021/07/18 21:40:13 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -32,7 +32,7 @@ extern struct mbr initial_mbr; void MBR_print(const struct mbr *, const char *); void MBR_parse(const struct dos_mbr *, const uint64_t, const uint64_t, struct mbr *); -void MBR_make(struct mbr *, struct dos_mbr *); +void MBR_make(const struct mbr *, struct dos_mbr *); void MBR_init(struct mbr *); void MBR_init_GPT(struct mbr *); int MBR_read(const uint64_t, const uint64_t, struct mbr *); -- cgit v1.2.3