diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-05-21 23:45:49 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-05-21 23:45:49 +0000 |
commit | ae8a031e28803ad11c91125bd1523348d0f9aba7 (patch) | |
tree | bdb340ca3ea84c5ced44c0a90436c136a706dcf3 /sys/arch/zaurus/dev | |
parent | a8bf30cd22bf1b839f7e9bffcd664791d8b3b2ae (diff) |
The only value that d_npartitions should have is MAXPARTITIONS.
Diffstat (limited to 'sys/arch/zaurus/dev')
-rw-r--r-- | sys/arch/zaurus/dev/zaurus_flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_flash.c b/sys/arch/zaurus/dev/zaurus_flash.c index 23dcfcb9b18..bb684aca1c0 100644 --- a/sys/arch/zaurus/dev/zaurus_flash.c +++ b/sys/arch/zaurus/dev/zaurus_flash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zaurus_flash.c,v 1.8 2008/05/19 18:42:13 miod Exp $ */ +/* $OpenBSD: zaurus_flash.c,v 1.9 2009/05/21 23:45:48 krw Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org> @@ -374,7 +374,7 @@ zflash_default_disklabel(void *arg, dev_t dev, struct disklabel *lp) DL_SETPOFFSET(&lp->d_partitions[10], DL_GETPOFFSET(&lp->d_partitions[9]) + DL_GETPSIZE(&lp->d_partitions[9])); lp->d_partitions[10].p_fstype = FS_OTHER; - lp->d_npartitions = 11; + lp->d_npartitions = MAXPARTITIONS; lp->d_version = 1; /* Re-calculate the checksum. */ |