In check.c:

Avoid shadowing declarations.
Avoid compairing signed and unsigned types.
This commit is contained in:
Tom Rhodes 2003-10-30 09:08:09 +00:00
parent d05bc12976
commit 565e3e6567
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121726
2 changed files with 2 additions and 5 deletions

View File

@ -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);

View File

@ -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;
/*