diff options
author | Petr Uzel | 2012-07-26 16:04:24 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-26 16:59:35 +0200 |
commit | b29ce87ba499bca5eea5ff2878aa112a0162f22b (patch) | |
tree | 169371a58b9557bf886a32d8451b84af5e01fe81 /fdisks/fdiskdoslabel.c | |
parent | partx: support -o +<attr> for adding attribute to output fields (diff) | |
download | kernel-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.c | 2 |
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; |