summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdosfs/check.c
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2003-10-30 09:08:09 +0000
committertrhodes <trhodes@FreeBSD.org>2003-10-30 09:08:09 +0000
commitf2e7bd69b88aa2eb4434410b9dc5c7d364505ee1 (patch)
treeb71a07cc1511e563a68bc408bf8aaebdc35c5f08 /sbin/fsck_msdosfs/check.c
parent28c9cd809b29e5971a70612915d818363b59734c (diff)
downloadFreeBSD-src-f2e7bd69b88aa2eb4434410b9dc5c7d364505ee1.zip
FreeBSD-src-f2e7bd69b88aa2eb4434410b9dc5c7d364505ee1.tar.gz
In check.c:
Avoid shadowing declarations. Avoid compairing signed and unsigned types.
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