summaryrefslogtreecommitdiff
path: root/sbin/fdisk/mbr.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2021-07-18 21:40:14 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2021-07-18 21:40:14 +0000
commit6abd62aee76a1637185997383e88914b9ea1b1fe (patch)
treea0a83ce51f8cbccb520cb15b6612ffc4a8e0525c /sbin/fdisk/mbr.h
parentc93d850d138320329d2c0c2a489b5bb667437b0a (diff)
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.
Diffstat (limited to 'sbin/fdisk/mbr.h')
-rw-r--r--sbin/fdisk/mbr.h4
1 files changed, 2 insertions, 2 deletions
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 *);