summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/fsck_msdosfs/check.c5
-rw-r--r--sbin/fsck_msdosfs/ext.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/sbin/fsck_msdosfs/check.c b/sbin/fsck_msdosfs/check.c
index 2a7ccc7..28b1588 100644
--- a/sbin/fsck_msdosfs/check.c
+++ b/sbin/fsck_msdosfs/check.c
@@ -49,8 +49,7 @@ static const char rcsid[] =
#include "fsutil.h"
int
-checkfilesys(fname)
- const char *fname;
+checkfilesys(const char *fname)
{
int dosfs;
struct bootblock boot;
@@ -99,7 +98,7 @@ checkfilesys(fname)
}
if (boot.ValidFat < 0)
- for (i = 1; i < boot.FATs; i++) {
+ for (i = 1; i < (int)boot.FATs; i++) {
struct fatEntry *currentFat;
mod |= readfat(dosfs, &boot, i, &currentFat);
diff --git a/sbin/fsck_msdosfs/ext.h b/sbin/fsck_msdosfs/ext.h
index ad80b15..ce67792 100644
--- a/sbin/fsck_msdosfs/ext.h
+++ b/sbin/fsck_msdosfs/ext.h
@@ -49,8 +49,6 @@ extern int alwaysyes; /* assume "yes" for all questions */
extern int preen; /* we are preening */
extern int rdonly; /* device is opened read only (supersedes above) */
-extern char *fname; /* file system currently checked */
-
extern struct dosDirEntry *rootDir;
/*
OpenPOWER on IntegriCloud