summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdosfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-12-28 01:30:31 +0000
committerbde <bde@FreeBSD.org>2003-12-28 01:30:31 +0000
commit20ebc42a34fdd5170f5a36c6b7ee34805f9b5755 (patch)
tree6a3d788d67780c6de4262e1c6054074a57ef38e3 /sbin/fsck_msdosfs
parentbbe09cbe06f729e0a06e15b026b1ade56dce13af (diff)
downloadFreeBSD-src-20ebc42a34fdd5170f5a36c6b7ee34805f9b5755.zip
FreeBSD-src-20ebc42a34fdd5170f5a36c6b7ee34805f9b5755.tar.gz
Oops, highly non-KNF indentation is normal for large expressions in
this program. Gnu indentation is used for these. Redo the fix for the large expression at the end of the previous commit to give gnu indentation. The original version was gnuish but had 9 bogus extra characters of indentation in its continuation lines, perfect tab lossage on every line, and other bugs. The previous commit log should have claimed to fix style bugs in the previous-1 commit (1.5), not the forced null previous commit (1.6).
Diffstat (limited to 'sbin/fsck_msdosfs')
-rw-r--r--sbin/fsck_msdosfs/check.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sbin/fsck_msdosfs/check.c b/sbin/fsck_msdosfs/check.c
index 149f261..16de7c7 100644
--- a/sbin/fsck_msdosfs/check.c
+++ b/sbin/fsck_msdosfs/check.c
@@ -229,12 +229,11 @@ checkdirty(int fs, struct bootblock *boot)
goto err;
}
- if (buffer[0] == boot->Media && buffer[1] == 0xff &&
- buffer[2] == 0xff &&
- ((boot->ClustMask == CLUST16_MASK && buffer[3] == 0x7f) ||
- (boot->ClustMask == CLUST32_MASK && buffer[3] == 0x0f &&
- buffer[4] == 0xff && buffer[5] == 0xff && buffer[6] == 0xff &&
- buffer[7] == 0x07)))
+ if (buffer[0] == boot->Media && buffer[1] == 0xff && buffer[2] == 0xff
+ && ((boot->ClustMask == CLUST16_MASK && buffer[3] == 0x7f)
+ || (boot->ClustMask == CLUST32_MASK && buffer[3] == 0x0f
+ && buffer[4] == 0xff && buffer[5] == 0xff
+ && buffer[6] == 0xff && buffer[7] == 0x07)))
ret = 0;
else
ret = 1;
OpenPOWER on IntegriCloud