diff options
author | Xin Li <delphij@google.com> | 2020-04-27 08:59:19 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2020-04-27 08:59:19 -0700 |
commit | ad1ac48b4ee2125f1aa4702facfb218bd6f04fc8 (patch) | |
tree | 027a67daa069ed9dc65160f5dcfa878b4ed22a34 /boot.c | |
parent | 97214502ea95f9f95b3e86fe749bc8241ec26105 (diff) | |
download | fsck_msdos-ad1ac48b4ee2125f1aa4702facfb218bd6f04fc8.tar.gz |
Import revision ffa396196c4c0fcf8a6bf4d1dd88ffb9ce531ccc from FreeBSD.
Change-Id: Ibbded2a22a581886dd43e0443e786ad867471f1c
Diffstat (limited to 'boot.c')
-rw-r--r-- | boot.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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; |