aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_msdosfs
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2020-02-02 20:53:31 +0000
committerXin LI <delphij@FreeBSD.org>2020-02-02 20:53:31 +0000
commit43f194099224c8792143e9922e73ab75ddf01416 (patch)
treeca0448baaec72909bf573cd6dc23a3e8f8c627ed /sbin/fsck_msdosfs
parent778ac8d3711fd1f968479b6be867ad938cedd24a (diff)
Notes
Diffstat (limited to 'sbin/fsck_msdosfs')
-rw-r--r--sbin/fsck_msdosfs/boot.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sbin/fsck_msdosfs/boot.c b/sbin/fsck_msdosfs/boot.c
index 86528ce83df9..887312ed7c41 100644
--- a/sbin/fsck_msdosfs/boot.c
+++ b/sbin/fsck_msdosfs/boot.c
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: boot.c,v 1.21 2018/02/08 09:05:17 dholland Exp $");
+__RCSID("$NetBSD: boot.c,v 1.22 2020/01/11 16:29:07 christos Exp $");
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
@@ -267,10 +267,11 @@ readboot(int dosfs, struct bootblock *boot)
}
/*
- * The number of clusters is derived from available data sectors, divided
- * by sectors per cluster.
+ * The number of clusters is derived from available data sectors,
+ * divided by sectors per cluster.
*/
- boot->NumClusters = (boot->NumSectors - boot->FirstCluster) / boot->bpbSecPerClust;
+ boot->NumClusters =
+ (boot->NumSectors - boot->FirstCluster) / boot->bpbSecPerClust;
if (boot->flags & FAT32) {
if (boot->NumClusters > (CLUST_RSRVD & CLUST32_MASK)) {
@@ -320,8 +321,8 @@ readboot(int dosfs, struct bootblock *boot)
}
/*
- * There are two reserved clusters. To avoid adding CLUST_FIRST every time
- * when we perform boundary checks, we increment the NumClusters by 2,
+ * There are two reserved clusters. To avoid adding CLUST_FIRST every
+ * time we perform boundary checks, we increment the NumClusters by 2,
* which is CLUST_FIRST to denote the first out-of-range cluster number.
*/
boot->NumClusters += CLUST_FIRST;