vfsck: Fix roken fallout
[openafs.git] / src / vfsck / pass4.c
index 9c95c89..fd7d519 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
+
+#include <ctype.h>
 
 #define VICE
-#include <sys/param.h>
-#include <sys/time.h>
 #ifdef AFS_OSF_ENV
 #include <sys/vnode.h>
 #include <sys/mount.h>
 #include <ufs/dir.h>
 #undef _KERNEL
 #undef _BSD
-#include <stdio.h>
 #else /* AFS_OSF_ENV */
 #ifdef AFS_VFSINCL_ENV
 #include <sys/vnode.h>
 #ifdef   AFS_SUN5_ENV
-#include <stdio.h>
-#include <unistd.h>
 #include <sys/fs/ufs_inode.h>
 #include <sys/fs/ufs_fs.h>
 #define _KERNEL
@@ -52,7 +50,6 @@
 #else /* AFS_VFSINCL_ENV */
 #include <sys/inode.h>
 #ifdef AFS_HPUX_ENV
-#include <ctype.h>
 #define        LONGFILENAMES   1
 #include <sys/sysmacros.h>
 #include <sys/ino.h>
@@ -125,15 +122,15 @@ pass4()
            break;
 
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
-           /* 
-            * UNreferenced continuation inode 
+           /*
+            * UNreferenced continuation inode
             */
        case CSTATE:
            clri(&idesc, "UNREF", 2);
            break;
 
-           /* 
-            * referenced continuation inode 
+           /*
+            * referenced continuation inode
             */
        case CRSTATE:
            if ((dp = ginode(inumber)) == NULL)
@@ -144,11 +141,7 @@ pass4()
                    pwarn("I=%u (%ld should be %ld)", inumber, dp->di_nlink,
                          1);
                    if (preen)
-#ifdef VICE
-                       vprintf(" (CORRECTED)\n");
-#else
                        printf(" (CORRECTED)\n");
-#endif /* VICE */
                    else {
                        if (reply("CORRECT") == 0)
                            continue;