summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdosfs/dosfs.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-02-14 12:30:30 +0000
committerkib <kib@FreeBSD.org>2010-02-14 12:30:30 +0000
commit53d879fa5d2a904194842a5da8dafd38d49957a1 (patch)
treef010d5d622bf13ee9314552bbfaa749698331ae3 /sbin/fsck_msdosfs/dosfs.h
parentce3384ad3e81febc6f64d45a171384ba24401471 (diff)
downloadFreeBSD-src-53d879fa5d2a904194842a5da8dafd38d49957a1.zip
FreeBSD-src-53d879fa5d2a904194842a5da8dafd38d49957a1.tar.gz
Bug fixes from NetBSD
- fix sign-compare issues. - ANSIfy a couple of functions. - Remove more duplicate #includes. - Memory leak found by Coverity on NetBSD. Submitted by: Pedro F. Giffuni <giffunip tutopia com> Reviewed by: bde MFC after: 2 weeks
Diffstat (limited to 'sbin/fsck_msdosfs/dosfs.h')
-rw-r--r--sbin/fsck_msdosfs/dosfs.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/fsck_msdosfs/dosfs.h b/sbin/fsck_msdosfs/dosfs.h
index 4220b12..4a968d0 100644
--- a/sbin/fsck_msdosfs/dosfs.h
+++ b/sbin/fsck_msdosfs/dosfs.h
@@ -48,8 +48,13 @@ struct bootblock {
u_int FATsmall; /* number of sectors per FAT */
u_int SecPerTrack; /* sectors per track */
u_int Heads; /* number of heads */
- u_int32_t Sectors; /* total number of sectors */
u_int32_t HiddenSecs; /* # of hidden sectors */
+ u_int32_t Sectors; /* total number of sectors */
+#define FAT32 1 /* this is a FAT32 file system */
+ /*
+ * Maybe, we should separate out
+ * various parts of FAT32? XXX
+ */
u_int32_t HugeSectors; /* # of sectors if bpbSectors == 0 */
u_int FSInfo; /* FSInfo sector */
u_int Backup; /* Backup of Bootblocks */
@@ -59,11 +64,6 @@ struct bootblock {
/* and some more calculated values */
u_int flags; /* some flags: */
-#define FAT32 1 /* this is a FAT32 file system */
- /*
- * Maybe, we should separate out
- * various parts of FAT32? XXX
- */
int ValidFat; /* valid fat if FAT32 non-mirrored */
cl_t ClustMask; /* mask for entries in FAT */
cl_t NumClusters; /* # of entries in a FAT */
OpenPOWER on IntegriCloud