mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
In check.c:
Avoid shadowing declarations. Avoid compairing signed and unsigned types.
This commit is contained in:
parent
d05bc12976
commit
565e3e6567
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121726
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user