summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-11-05 13:55:59 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-11-05 13:55:59 +0000
commit31a9c4681636cc888b220ceb79675d2b39cafc76 (patch)
tree39cfcbe687a86b2317fd85cb498e0a18324fb161 /sys/arch/i386/stand
parent6d52c4dcd1c626834713dcf719c066097aa9f734 (diff)
DL_SETDSIZE() and DL_SETPSIZE() are not the same thing. Use the latter
to set partition size. Fixes tree breakage found by Scott McEachern.
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r--sys/arch/i386/stand/libsa/diskprobe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/diskprobe.c b/sys/arch/i386/stand/libsa/diskprobe.c
index 81ead6b8900..f572113af9a 100644
--- a/sys/arch/i386/stand/libsa/diskprobe.c
+++ b/sys/arch/i386/stand/libsa/diskprobe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diskprobe.c,v 1.35 2013/11/05 00:51:58 krw Exp $ */
+/* $OpenBSD: diskprobe.c,v 1.36 2013/11/05 13:55:58 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -273,12 +273,12 @@ cdprobe(void)
/* 'a' partition covering the "whole" disk */
DL_SETPSOFFSET(&dip->disklabel.d_partitions[0], 0);
- DL_SETDSIZE(&dip->disklabel.d_partitions[0], 100);
+ DL_SETPSIZE(&dip->disklabel.d_partitions[0], 100);
dip->disklabel.d_partitions[0].p_fstype = FS_UNUSED;
/* The raw partition is special */
DL_SETPSOFFSET(&dip->disklabel.d_partitions[RAW_PART], 0);
- DL_SETDSIZE(&dip->disklabel.d_partitions[RAW_PART], 100);
+ DL_SETPSIZE(&dip->disklabel.d_partitions[RAW_PART], 100);
dip->disklabel.d_partitions[RAW_PART].p_fstype = FS_UNUSED;
dip->disklabel.d_npartitions = MAXPARTITIONS;