summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-10-14 02:52:31 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-10-14 02:52:31 +0000
commit13fb54a37fad5244bf13c98425227c3fc6fcbec9 (patch)
treec5ef6f9eeb8fd3767b09fb41a040c25f2b810338 /ufs-fsck
parent6619a1a07ff107e811404f75a6710190456584fd (diff)
Formerly pass4.c.~4~
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/pass4.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ufs-fsck/pass4.c b/ufs-fsck/pass4.c
index 708674ca..e70fa411 100644
--- a/ufs-fsck/pass4.c
+++ b/ufs-fsck/pass4.c
@@ -18,11 +18,14 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include "fsck.h"
+
+void
pass4()
{
ino_t number;
- for (number = ROOTINO; number < lastino; number++)
+ for (number = ROOTINO; number < maxino; number++)
{
if (linkfound[number] && inodestate[number] != UNALLOC)
{
@@ -31,7 +34,7 @@ pass4()
struct dinode dino;
getinode (number, &dino);
pwarn ("LINK COUNT %s",
- (DI_MODE (dp) & IFMT) == IFDIR ? "DIR" : "FILE");
+ (DI_MODE (&dino) & IFMT) == IFDIR ? "DIR" : "FILE");
pinode (dino);
printf (" COUNT %d SHOULD BE %d", linkcount[number],
linkfound[number]);
@@ -59,7 +62,7 @@ pass4()
getinode (number, &dino);
- if (dino.st_size)
+ if (dino.di_size)
{
/* This can't happen for dirctories because pass 3 should
already have reset them up. */