summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-10-13 00:04:58 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-10-13 00:04:58 +0000
commitde129ccb4d52da944ea2aed649de99494b664579 (patch)
tree72a29fe66090d049e26259b0b7ee24c0a4bb4871 /ufs-fsck
parentb5dd6d727cfec2909101a22a7f94ea4a07a065b3 (diff)
Formerly pass1.c.~3~
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/pass1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ufs-fsck/pass1.c b/ufs-fsck/pass1.c
index a59657fc..5d4c8dd8 100644
--- a/ufs-fsck/pass1.c
+++ b/ufs-fsck/pass1.c
@@ -26,6 +26,7 @@
Set them in the global block map. For each file, if a block is found
allocated twice, then record the block and inode in DUPLIST.
Initialize INODESTATE, LINKCOUNT, and TYPEMAP. */
+void
pass1 ()
{
ino_t number;
@@ -211,7 +212,7 @@ pass1 ()
/* Decode type and set NDB
also set inodestate correctly. */
- inodestate[number] = FILE;
+ inodestate[number] = REG;
switch (type)
{
case IFBLK: