diff options
Diffstat (limited to 'sys/arch/amd64/stand/libsa/diskprobe.c')
-rw-r--r-- | sys/arch/amd64/stand/libsa/diskprobe.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/amd64/stand/libsa/diskprobe.c b/sys/arch/amd64/stand/libsa/diskprobe.c index 581bcac749c..50062579d5d 100644 --- a/sys/arch/amd64/stand/libsa/diskprobe.c +++ b/sys/arch/amd64/stand/libsa/diskprobe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diskprobe.c,v 1.12 2012/10/30 14:06:29 jsing Exp $ */ +/* $OpenBSD: diskprobe.c,v 1.13 2013/11/05 00:51:58 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -266,19 +266,19 @@ cdprobe(void) strncpy(dip->disklabel.d_packname, "fictitious", sizeof(dip->disklabel.d_packname)); - dip->disklabel.d_secperunit = 100; + DL_SETDSIZE(&dip->disklabel, 100); dip->disklabel.d_bbsize = 2048; dip->disklabel.d_sbsize = 2048; /* 'a' partition covering the "whole" disk */ - dip->disklabel.d_partitions[0].p_offset = 0; - dip->disklabel.d_partitions[0].p_size = 100; + DL_SETPOFFSET(&dip->disklabel.d_partitions[0], 0); + DL_SETPSIZE(&dip->disklabel.d_partitions[0], 100); dip->disklabel.d_partitions[0].p_fstype = FS_UNUSED; /* The raw partition is special */ - dip->disklabel.d_partitions[RAW_PART].p_offset = 0; - dip->disklabel.d_partitions[RAW_PART].p_size = 100; + DL_SETPOFFSET(&dip->disklabel.d_partitions[RAW_PART], 0); + DL_SETPSIZE(&dip->disklabel.d_partitions[RAW_PART], 100); dip->disklabel.d_partitions[RAW_PART].p_fstype = FS_UNUSED; dip->disklabel.d_npartitions = MAXPARTITIONS; |