summaryrefslogtreecommitdiff
path: root/sbin/fdisk/mbr.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-03-16 23:51:51 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-03-16 23:51:51 +0000
commit232a2f05d9f71e64ae425a3947b98559ba6d177b (patch)
treebd0b9f3be8084738fe30c2456c72182f1ec49836 /sbin/fdisk/mbr.h
parent6bbc2077ce2790382a145103f44a5940ebb234e2 (diff)
Stop passing around a pointer to the stack variable 'disk' in main().
There is only one disk being worked on, so just make it a global. Fewer parameters, less confusion, no functional change.
Diffstat (limited to 'sbin/fdisk/mbr.h')
-rw-r--r--sbin/fdisk/mbr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fdisk/mbr.h b/sbin/fdisk/mbr.h
index fe388c3cdb6..567ac7975d8 100644
--- a/sbin/fdisk/mbr.h
+++ b/sbin/fdisk/mbr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mbr.h,v 1.19 2015/03/14 15:21:53 krw Exp $ */
+/* $OpenBSD: mbr.h,v 1.20 2015/03/16 23:51:50 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -29,12 +29,12 @@ struct mbr {
void MBR_print_disk(char *);
void MBR_print(struct mbr *, char *);
-void MBR_parse(struct disk *, struct dos_mbr *, off_t, off_t, struct mbr *);
+void MBR_parse(struct dos_mbr *, off_t, off_t, struct mbr *);
void MBR_make(struct mbr *, struct dos_mbr *);
-void MBR_init(struct disk *, struct mbr *);
+void MBR_init(struct mbr *);
int MBR_read(int, off_t, struct dos_mbr *);
int MBR_write(int, off_t, struct dos_mbr *);
-void MBR_pcopy(struct disk *, struct mbr *);
+void MBR_pcopy(struct mbr *);
char *MBR_readsector(int, off_t);
int MBR_writesector(int, char *, off_t);
void MBR_zapgpt(int, struct dos_mbr *, uint64_t);