diff options
author | 2013-11-05 13:55:58 +0000 | |
---|---|---|
committer | 2013-11-05 13:55:58 +0000 | |
commit | 45355ea507865ebe855bc31db2a0840a36195ab2 (patch) | |
tree | 0cda9ea195aef38e01a7a1e357acc80bb34da57d | |
parent | Instead of comparing the lower and higher addresses of all the multicast (diff) | |
download | wireguard-openbsd-45355ea507865ebe855bc31db2a0840a36195ab2.tar.xz wireguard-openbsd-45355ea507865ebe855bc31db2a0840a36195ab2.zip |
DL_SETDSIZE() and DL_SETPSIZE() are not the same thing. Use the latter
to set partition size. Fixes tree breakage found by Scott McEachern.
-rw-r--r-- | sys/arch/i386/stand/libsa/diskprobe.c | 6 |
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; |