In fsdb, call sblock_init() which is now necessary to initialise

the global variable dev_bsize. Add a prototype for sblock_init()
to fsck.h, and set the return type correctly.
This commit is contained in:
Ian Dowse 2001-04-23 21:39:14 +00:00
parent d51352c9b1
commit d164d805c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75884
3 changed files with 3 additions and 0 deletions

View File

@ -315,6 +315,7 @@ void pwarn __P((const char *fmt, ...));
int readsb __P((int listerr));
int reply __P((char *question));
void rwerror __P((char *mesg, ufs_daddr_t blk));
void sblock_init __P((void));
void setinodebuf __P((ino_t));
int setup __P((char *dev));
void voidquit __P((int));

View File

@ -475,6 +475,7 @@ badsb(listerr, s)
pfatal("BAD SUPER BLOCK: %s\n", s);
}
void
sblock_init()
{
struct disklabel *lp;

View File

@ -100,6 +100,7 @@ main(argc, argv)
else
fsys = argv[0];
sblock_init();
if (!setup(fsys))
errx(1, "cannot set up file system `%s'", fsys);
printf("%s file system `%s'\nLast Mounted on %s\n",