From 1028f31a04fc348244b6396b6d9deb28ae323a97 Mon Sep 17 00:00:00 2001 From: Per Fogelstrom Date: Sat, 18 May 1996 19:06:39 +0000 Subject: Minor glitch when no boot is used fixed. --- sbin/disklabel/disklabel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index b39d399f577..37d25dedaf4 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.5 1996/05/17 15:32:58 mickey Exp $ */ +/* $OpenBSD: disklabel.c,v 1.6 1996/05/18 19:06:38 pefo Exp $ */ /* $NetBSD: disklabel.c,v 1.30 1996/03/14 19:49:24 ghudson Exp $ */ /* @@ -427,6 +427,8 @@ writelabel(f, boot, lp) } sectoffset = 0; } + +#if NUMBOOT > 0 /* * If we are not installing a boot program * we must read the current bootarea so we don't @@ -446,6 +448,7 @@ writelabel(f, boot, lp) } *lp =tlab; } +#endif #endif /* -- cgit v1.2.3