diff options
author | 2007-06-09 17:18:36 +0000 | |
---|---|---|
committer | 2007-06-09 17:18:36 +0000 | |
commit | 3204c3caaa66cd4b2fd695881727efe179cd3121 (patch) | |
tree | 811632c2cd25aa755ae8db6a9b8aa8214530221c /sys/kern/subr_disk.c | |
parent | sizeof(ptr) is no good if you want sizeof(*ptr). icmp/icmpv6. (diff) | |
download | wireguard-openbsd-3204c3caaa66cd4b2fd695881727efe179cd3121.tar.xz wireguard-openbsd-3204c3caaa66cd4b2fd695881727efe179cd3121.zip |
silently whack wrong-sized C partitions
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 325116a5839..cc8b2dd29d9 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.55 2007/06/09 06:03:24 deraadt Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.56 2007/06/09 17:18:36 deraadt Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -229,11 +229,8 @@ disklabeltokernlabel(struct disklabel *lp) } /* XXX this should not be here */ - if (DL_GETPOFFSET(&lp->d_partitions[RAW_PART]) != 0) { - printf("disklabeltokernlabel: Your raw partition MUST start at 0\n"); - DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); - DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); - } + DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); } /* |