diff options
author | 2016-01-29 22:51:43 +0000 | |
---|---|---|
committer | 2016-01-29 22:51:43 +0000 | |
commit | 6f012227d275893711279b51a984b96439466227 (patch) | |
tree | b478fa2e6ec85593a1062bf1e94b50a8520132a3 /sbin/pdisk/file_media.h | |
parent | Remove code that has been disabled for almost 20 years: (diff) | |
download | wireguard-openbsd-6f012227d275893711279b51a984b96439466227.tar.xz wireguard-openbsd-6f012227d275893711279b51a984b96439466227.zip |
Fold struct block0 into struct partition map. There can be only one
and read/write_block0() can move the data from/to disk to/from
appropriate fields anywhere. Removes a bunch of dereferencing,
malloc'ing and pointer checking.
Diffstat (limited to 'sbin/pdisk/file_media.h')
-rw-r--r-- | sbin/pdisk/file_media.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pdisk/file_media.h b/sbin/pdisk/file_media.h index bd997fc66f6..889913c6c78 100644 --- a/sbin/pdisk/file_media.h +++ b/sbin/pdisk/file_media.h @@ -1,4 +1,4 @@ -/* $OpenBSD: file_media.h,v 1.18 2016/01/25 23:43:20 krw Exp $ */ +/* $OpenBSD: file_media.h,v 1.19 2016/01/29 22:51:43 krw Exp $ */ /* * file_media.h - @@ -30,8 +30,8 @@ #ifndef __file_media__ #define __file_media__ -int read_block0(int, struct block0 *); -int write_block0(int, struct block0 *); +int read_block0(int, struct partition_map *); +int write_block0(int, struct partition_map *); int read_dpme(int, uint64_t, struct dpme *); int write_dpme(int, uint64_t, struct dpme *); |