summaryrefslogtreecommitdiff
path: root/sbin/pdisk/dump.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-22 17:35:17 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-22 17:35:17 +0000
commita45fc8c25d4e740e1fcf7041e3c6ab53e48d6776 (patch)
tree9df5bfa50220556ac1f980d142599fda8211faea /sbin/pdisk/dump.c
parent0c2bb2151b3b6f78f75195d615cab8d7e0d797a5 (diff)
Rename map field 'misc' to 'block0' since that's what it is.
Diffstat (limited to 'sbin/pdisk/dump.c')
-rw-r--r--sbin/pdisk/dump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/pdisk/dump.c b/sbin/pdisk/dump.c
index d50ce937999..37b6bf15b25 100644
--- a/sbin/pdisk/dump.c
+++ b/sbin/pdisk/dump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dump.c,v 1.42 2016/01/22 01:25:56 krw Exp $ */
+/* $OpenBSD: dump.c,v 1.43 2016/01/22 17:35:16 krw Exp $ */
/*
* dump.c - dumping partition maps
@@ -58,7 +58,7 @@ dump_block_zero(struct partition_map_header * map)
long t;
int i, prefix;
- p = map->misc;
+ p = map->block0;
if (p->sbSig != BLOCK0_SIGNATURE) {
return;
}
@@ -190,10 +190,10 @@ show_data_structures(struct partition_map_header * map)
kStringNot);
printf("\n");
- if (map->misc == NULL) {
+ if (map->block0 == NULL) {
printf("No block zero\n");
} else {
- zp = map->misc;
+ zp = map->block0;
printf("Block0:\n");
printf("signature 0x%x", zp->sbSig);
@@ -383,11 +383,11 @@ full_dump_block_zero(struct partition_map_header * map)
struct ddmap *m;
int i;
- if (map->misc == NULL) {
+ if (map->block0 == NULL) {
printf("No block zero\n");
return;
}
- zp = map->misc;
+ zp = map->block0;
printf(" signature: 0x%x\n", zp->sbSig);
printf(" size of a block: %u\n", zp->sbBlkSize);