summaryrefslogtreecommitdiff
path: root/sbin/disklabel/disklabel.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-09-24 20:29:53 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-09-24 20:29:53 +0000
commit44a237e87da7122754d9e3e4a49435b04f9adde9 (patch)
treea980818326551ee756c1ad975ada021ecbaab205 /sbin/disklabel/disklabel.c
parent8be112a8f0b1f6a31ef3e529d9864953eb2385ee (diff)
Eliminate D_CHAIN, D_ECC and D_RAMDISK flags from disklabel. They were
not being used in the tree for anything obviously useful. Get it done early so we can find if there are non-obvious uses out there. ok deraadt@ beck@
Diffstat (limited to 'sbin/disklabel/disklabel.c')
-rw-r--r--sbin/disklabel/disklabel.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 30b0cfb40a1..fccd0e15595 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.c,v 1.98 2006/07/01 16:50:33 krw Exp $ */
+/* $OpenBSD: disklabel.c,v 1.99 2006/09/24 20:29:52 krw Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -39,7 +39,7 @@ static const char copyright[] =
#endif /* not lint */
#ifndef lint
-static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.98 2006/07/01 16:50:33 krw Exp $";
+static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.99 2006/09/24 20:29:52 krw Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -1073,8 +1073,6 @@ display(FILE *f, struct disklabel *lp, char **mp, char unit, int edit,
fprintf(f, "flags:");
if (lp->d_flags & D_REMOVABLE)
fprintf(f, " removable");
- if (lp->d_flags & D_ECC)
- fprintf(f, " ecc");
if (lp->d_flags & D_BADSECT)
fprintf(f, " badsect");
putc('\n', f);
@@ -1338,8 +1336,6 @@ getasciilabel(FILE *f, struct disklabel *lp)
tp = word(cp);
if (!strcmp(cp, "removable"))
v |= D_REMOVABLE;
- else if (!strcmp(cp, "ecc"))
- v |= D_ECC;
else if (!strcmp(cp, "badsect"))
v |= D_BADSECT;
else {