From ae8a031e28803ad11c91125bd1523348d0f9aba7 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 21 May 2009 23:45:49 +0000 Subject: The only value that d_npartitions should have is MAXPARTITIONS. --- sys/arch/armish/stand/boot/wd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/armish') diff --git a/sys/arch/armish/stand/boot/wd.c b/sys/arch/armish/stand/boot/wd.c index 22adab63d8e..a0f144645a2 100644 --- a/sys/arch/armish/stand/boot/wd.c +++ b/sys/arch/armish/stand/boot/wd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wd.c,v 1.6 2008/06/26 05:42:10 ray Exp $ */ +/* $OpenBSD: wd.c,v 1.7 2009/05/21 23:45:48 krw Exp $ */ /* $NetBSD: wd.c,v 1.5 2005/12/11 12:17:06 christos Exp $ */ /*- @@ -138,7 +138,7 @@ wdgetdefaultlabel(wd, lp) lp->d_partitions[RAW_PART].p_offset = 0; lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED; - lp->d_npartitions = MAXPARTITIONS; /* RAW_PART + 1 ??? */ + lp->d_npartitions = MAXPARTITIONS; lp->d_magic = DISKMAGIC; lp->d_magic2 = DISKMAGIC; -- cgit v1.2.3