From 565e3e656767c3c0c5e9e058345049f74e6fcd82 Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Thu, 30 Oct 2003 09:08:09 +0000 Subject: [PATCH] In check.c: Avoid shadowing declarations. Avoid compairing signed and unsigned types. --- sbin/fsck_msdosfs/check.c | 5 ++--- sbin/fsck_msdosfs/ext.h | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/sbin/fsck_msdosfs/check.c b/sbin/fsck_msdosfs/check.c index 2a7ccc71ed01..28b1588e7aa6 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, ¤tFat); diff --git a/sbin/fsck_msdosfs/ext.h b/sbin/fsck_msdosfs/ext.h index ad80b157844b..ce677927e94e 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; /*