summaryrefslogtreecommitdiff
path: root/sbin/pdisk/partition_map.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-22 01:25:57 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-22 01:25:57 +0000
commitd6842e396167ba7995bcb6aaeac8ace7b4bf6cca (patch)
treedae9d570873e2c79a984db64805e9f154f971a86 /sbin/pdisk/partition_map.h
parentd32d6f51ac0a01d6d56a0a9a105f7a61ab76ba76 (diff)
In the "why use two variables when one would do" category, eliminate
the 'written' field and just use the 'changed' field to mediate when it is appropriate to ask whether changes should be discarded.
Diffstat (limited to 'sbin/pdisk/partition_map.h')
-rw-r--r--sbin/pdisk/partition_map.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/pdisk/partition_map.h b/sbin/pdisk/partition_map.h
index ade319e9c7c..a166eaad342 100644
--- a/sbin/pdisk/partition_map.h
+++ b/sbin/pdisk/partition_map.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: partition_map.h,v 1.21 2016/01/21 15:33:21 krw Exp $ */
+/* $OpenBSD: partition_map.h,v 1.22 2016/01/22 01:25:56 krw Exp $ */
/*
* partition_map.h - partition map routines
@@ -40,7 +40,6 @@ struct partition_map_header {
struct block0 *misc;
int fd;
int changed;
- int written;
int physical_block; /* must be == sbBlockSize */
int logical_block; /* must be <= physical_block */
int blocks_in_map;