summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/rules.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-05-06 03:28:32 +0000
committerphk <phk@FreeBSD.org>1995-05-06 03:28:32 +0000
commit3f92c42b372f465caab2ddae6bef754bed6d7c57 (patch)
tree54e64990f02f3b4e4a63797686f948697491499e /lib/libdisk/rules.c
parent5d77b2037bd2957e492a7f71d3c5c24aa1acd977 (diff)
downloadFreeBSD-src-3f92c42b372f465caab2ddae6bef754bed6d7c57.zip
FreeBSD-src-3f92c42b372f465caab2ddae6bef754bed6d7c57.tar.gz
General sanitation and cleanup. Killed the "reserved" type, it wasn't.
Diffstat (limited to 'lib/libdisk/rules.c')
-rw-r--r--lib/libdisk/rules.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libdisk/rules.c b/lib/libdisk/rules.c
index 39d54ff..6bd46a4 100644
--- a/lib/libdisk/rules.c
+++ b/lib/libdisk/rules.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: rules.c,v 1.6 1995/05/04 07:00:56 phk Exp $
+ * $Id: rules.c,v 1.7 1995/05/05 07:07:45 phk Exp $
*
*/
@@ -87,7 +87,6 @@ Rule_000(struct disk *d, struct chunk *c, char *msg)
return;
for (c1=c->part; c1; c1=c1->next) {
if (c1->type != unused) continue;
- if (c1->type != reserved) continue;
if (c1->flags & CHUNK_ACTIVE)
j++;
i++;
@@ -115,10 +114,7 @@ Rule_001(struct disk *d, struct chunk *c, char *msg)
if (c->type != whole && c->type != extended)
return;
for (i=0, c1=c->part; c1; c1=c1->next) {
- if (c1->type == reserved)
- continue;
- if (c1->type == unused)
- continue;
+ if (c1->type == unused) continue;
c1->flags |= CHUNK_ALIGN;
if (!Track_Aligned(d,c1->offset))
sprintf(msg+strlen(msg),
OpenPOWER on IntegriCloud