summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2012-07-25 19:49:11 +0000
committerotto <otto@openbsd.org>2012-07-25 19:49:11 +0000
commitdda9932b01ae156320cbd5b6b1abe892e184706e (patch)
treefa152f857659ee303ecc28304e2ef33077578148
parentWhen reporting media state, be sure to set IFM_AVALID and IFM_ACTIVE in (diff)
downloadwireguard-openbsd-dda9932b01ae156320cbd5b6b1abe892e184706e.tar.xz
wireguard-openbsd-dda9932b01ae156320cbd5b6b1abe892e184706e.zip
do not check ns here, we're supposed to compute it; ok krw@ deraadt@
-rw-r--r--sbin/fdisk/part.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c
index cc99b8201c6..153de122d1d 100644
--- a/sbin/fdisk/part.c
+++ b/sbin/fdisk/part.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: part.c,v 1.51 2012/07/11 10:27:34 krw Exp $ */
+/* $OpenBSD: part.c,v 1.52 2012/07/25 19:49:11 otto Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -309,7 +309,7 @@ PRT_fix_BN(disk_t *disk, prt_t *part, int pn)
u_int32_t end = 0;
/* Zero out entry if not used */
- if (part->id == DOSPTYP_UNUSED || part->ns == 0) {
+ if (part->id == DOSPTYP_UNUSED) {
memset(part, 0, sizeof(*part));
return;
}