From f2e7bd69b88aa2eb4434410b9dc5c7d364505ee1 Mon Sep 17 00:00:00 2001 From: trhodes Date: Thu, 30 Oct 2003 09:08:09 +0000 Subject: In check.c: Avoid shadowing declarations. Avoid compairing signed and unsigned types. --- sbin/fsck_msdosfs/check.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sbin/fsck_msdosfs/check.c') 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, ¤tFat); -- cgit v1.1