summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdosfs/check.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/fsck_msdosfs/check.c')
-rw-r--r--sbin/fsck_msdosfs/check.c5
1 files changed, 2 insertions, 3 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);
OpenPOWER on IntegriCloud