summaryrefslogtreecommitdiffstats
path: root/fdisks/fdiskdoslabel.c
diff options
context:
space:
mode:
authorPetr Uzel2012-07-26 16:04:24 +0200
committerKarel Zak2012-07-26 16:59:35 +0200
commitb29ce87ba499bca5eea5ff2878aa112a0162f22b (patch)
tree169371a58b9557bf886a32d8451b84af5e01fe81 /fdisks/fdiskdoslabel.c
parentpartx: support -o +<attr> for adding attribute to output fields (diff)
downloadkernel-qcow2-util-linux-b29ce87ba499bca5eea5ff2878aa112a0162f22b.tar.gz
kernel-qcow2-util-linux-b29ce87ba499bca5eea5ff2878aa112a0162f22b.tar.xz
kernel-qcow2-util-linux-b29ce87ba499bca5eea5ff2878aa112a0162f22b.zip
fdisk: make grain global variable part of fdisk_context()
There is no reason for this to be global variable - it belongs to the context. Signed-off-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdiskdoslabel.c')
-rw-r--r--fdisks/fdiskdoslabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c
index 06c868e71..10006f6a0 100644
--- a/fdisks/fdiskdoslabel.c
+++ b/fdisks/fdiskdoslabel.c
@@ -22,7 +22,7 @@
s |= (sector >> 2) & 0xc0; \
}
-#define alignment_required (grain != cxt->sector_size)
+#define alignment_required (cxt->grain != cxt->sector_size)
struct pte ptes[MAXIMUM_PARTS];
sector_t extended_offset;