diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-10-12 19:07:09 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-10-12 19:07:09 +0000 |
commit | 7b2317f56641f8ed6a5895b234f8b01f87b2c02d (patch) | |
tree | 98bf61d5a7022bf43d42e3740110bb9883b882ca | |
parent | f8a5e2c30dd17acd4837a31d53239b1633e5d76f (diff) |
Formerly pass2.c.~4~
-rw-r--r-- | ufs-fsck/pass2.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ufs-fsck/pass2.c b/ufs-fsck/pass2.c index ee1d09df..f3353325 100644 --- a/ufs-fsck/pass2.c +++ b/ufs-fsck/pass2.c @@ -44,7 +44,7 @@ pass2 () for (dp = buf; (void *)dp - buf < DIRBLKSIZ; - dp = (struct directory_entry *) ((void *) dp + dp->d_reclen)) + dp = (struct directory_entry *) ((void *)dp + dp->d_reclen)) { /* Check RECLEN for basic validity */ if (dp->d_reclen == 0 @@ -163,8 +163,9 @@ pass2 () } /* Called for each filesystem block of the directory. Load BNO - into core and then call CHECK1BLOCK for each DIRBLKSIZ chunk. */ - void + into core and then call CHECK1BLOCK for each DIRBLKSIZ chunk. + Always return 1. */ + int checkdirblock (daddr_t bno, int nfrags) { void *buf = alloca (nfrags * sblock->fs_fsize); @@ -182,6 +183,7 @@ pass2 () } if (rewrite) writeblock (fsbtodb (bno), buf, fsbtodb (nfrags)); + return 1; } switch (statemap [ROOTINO]) |