diff options
author | trhodes <trhodes@FreeBSD.org> | 2003-10-30 09:08:09 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2003-10-30 09:08:09 +0000 |
commit | f2e7bd69b88aa2eb4434410b9dc5c7d364505ee1 (patch) | |
tree | b71a07cc1511e563a68bc408bf8aaebdc35c5f08 /sbin/fsck_msdosfs | |
parent | 28c9cd809b29e5971a70612915d818363b59734c (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sbin/fsck_msdosfs/check.c | 5 | ||||
-rw-r--r-- | 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 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); 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; /* |