In check.c:

Avoid shadowing declarations.
Avoid compairing signed and unsigned types.
This commit is contained in:
trhodes 2003-10-30 09:08:09 +00:00
parent 28c9cd809b
commit f2e7bd69b8
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;
/*