diff options
author | Sami Kerola | 2017-03-05 21:52:20 +0100 |
---|---|---|
committer | Karel Zak | 2017-03-13 14:48:04 +0100 |
commit | c308e2050f3b7cc08be64227644ce1020a27fdfe (patch) | |
tree | 9efe0572d5e3f63021d9c614b09c826c4ff50858 /libblkid | |
parent | lib/colors: assert rathen than overflow [-Wnull-dereference] (diff) | |
download | kernel-qcow2-util-linux-c308e2050f3b7cc08be64227644ce1020a27fdfe.tar.gz kernel-qcow2-util-linux-c308e2050f3b7cc08be64227644ce1020a27fdfe.tar.xz kernel-qcow2-util-linux-c308e2050f3b7cc08be64227644ce1020a27fdfe.zip |
misc: stop mixing declarations and code
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'libblkid')
-rw-r--r-- | libblkid/src/superblocks/minix.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libblkid/src/superblocks/minix.c b/libblkid/src/superblocks/minix.c index feebc96ad..b8881e574 100644 --- a/libblkid/src/superblocks/minix.c +++ b/libblkid/src/superblocks/minix.c @@ -77,6 +77,9 @@ static int probe_minix(blkid_probe pr, unsigned char *ext; const unsigned char *data; int version = 0, swabme = 0; + unsigned long zones, ninodes, imaps, zmaps; + off_t firstz; + size_t zone_size; data = blkid_probe_get_buffer(pr, 1024, max(sizeof(struct minix_super_block), @@ -87,10 +90,6 @@ static int probe_minix(blkid_probe pr, if (version < 1) return 1; - unsigned long zones, ninodes, imaps, zmaps; - off_t firstz; - size_t zone_size; - if (version <= 2) { struct minix_super_block *sb = (struct minix_super_block *) data; |