summaryrefslogtreecommitdiff
path: root/sbin/pdisk/dump.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-17 16:26:27 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-17 16:26:27 +0000
commit541799b37400b015408f9595e3b4e3f3d23dfe0e (patch)
tree5822fb1dc3c6fa3101524314ecd29df2b90395d6 /sbin/pdisk/dump.c
parent2f7eed32a3a1a338277df36043895268da3d3442 (diff)
The great de-typedef'ification continues. DDMap -> struct ddmap.
Diffstat (limited to 'sbin/pdisk/dump.c')
-rw-r--r--sbin/pdisk/dump.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/pdisk/dump.c b/sbin/pdisk/dump.c
index 85e5b2a2768..4e3a01a1f3d 100644
--- a/sbin/pdisk/dump.c
+++ b/sbin/pdisk/dump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dump.c,v 1.25 2016/01/17 16:15:59 krw Exp $ */
+/* $OpenBSD: dump.c,v 1.26 2016/01/17 16:26:26 krw Exp $ */
//
// dump.c - dumping partition maps
@@ -150,7 +150,7 @@ void
dump_block_zero(partition_map_header *map)
{
struct block0 *p;
- DDMap *m;
+ struct ddmap *m;
int i;
double value;
int prefix;
@@ -170,7 +170,7 @@ dump_block_zero(partition_map_header *map)
p->sbDevType, p->sbDevId);
if (p->sbDrvrCount > 0) {
printf("Drivers-\n");
- m = (DDMap *) p->sbMap;
+ m = (struct ddmap *) p->sbMap;
for (i = 0; i < p->sbDrvrCount; i++) {
printf("%u: %3u @ %lu, ", i+1,
m[i].ddSize, get_align_long(&m[i].ddBlock));
@@ -289,7 +289,7 @@ void
show_data_structures(partition_map_header *map)
{
struct block0 *zp;
- DDMap *m;
+ struct ddmap *m;
int i;
partition_map * entry;
struct dpme *p;
@@ -328,7 +328,7 @@ show_data_structures(partition_map_header *map)
} else {
printf("%u driver%s-\n", zp->sbDrvrCount,
(zp->sbDrvrCount>1)?"s":kStringEmpty);
- m = (DDMap *) zp->sbMap;
+ m = (struct ddmap *) zp->sbMap;
for (i = 0; i < zp->sbDrvrCount; i++) {
printf("%u: @ %lu for %u, type=0x%x\n", i+1,
get_align_long(&m[i].ddBlock),
@@ -487,7 +487,7 @@ void
full_dump_block_zero(partition_map_header *map)
{
struct block0 *zp;
- DDMap *m;
+ struct ddmap *m;
int i;
if (map == NULL) {
@@ -508,7 +508,7 @@ full_dump_block_zero(partition_map_header *map)
printf(" device id: 0x%x\n", zp->sbDevId);
printf(" data: 0x%lx\n", zp->sbData);
printf(" driver count: %d\n", zp->sbDrvrCount);
- m = (DDMap *) zp->sbMap;
+ m = (struct ddmap *) zp->sbMap;
for (i = 0; &m[i].ddType < &zp->sbMap[247]; i++) {
if (m[i].ddBlock == 0 && m[i].ddSize == 0 && m[i].ddType == 0) {
break;