diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-04-23 21:39:14 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-04-23 21:39:14 +0000 |
commit | f0878d962fc4a1031424f1d120b480d6c33ef7d5 (patch) | |
tree | 36501174c20cd67c300aac6611c57980765b5be3 /sbin/fsck_ffs | |
parent | bcc74c4e75a9e6474c0234e24939a6bf01ab3157 (diff) | |
download | FreeBSD-src-f0878d962fc4a1031424f1d120b480d6c33ef7d5.zip FreeBSD-src-f0878d962fc4a1031424f1d120b480d6c33ef7d5.tar.gz |
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.
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r-- | sbin/fsck_ffs/fsck.h | 1 | ||||
-rw-r--r-- | sbin/fsck_ffs/setup.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h index dee89c7..813202b 100644 --- a/sbin/fsck_ffs/fsck.h +++ b/sbin/fsck_ffs/fsck.h @@ -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)); diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c index 517547d..24ef003 100644 --- a/sbin/fsck_ffs/setup.c +++ b/sbin/fsck_ffs/setup.c @@ -475,6 +475,7 @@ badsb(listerr, s) pfatal("BAD SUPER BLOCK: %s\n", s); } +void sblock_init() { struct disklabel *lp; |