checkpoint
[unix-history] / usr / src / sbin / icheck / icheck.c
index 3b7313e..203fcca 100644 (file)
@@ -1,12 +1,19 @@
-/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+/*-
+ * Copyright (c) 1988 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.proprietary.c%
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)icheck.c   5.6 (Berkeley) %G%";
-#endif not lint
+char copyright[] =
+"@(#) Copyright (c) 1988 The Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif /* not lint */
+
+#ifndef lint
+static char sccsid[] = "@(#)icheck.c   5.10 (Berkeley) %G%";
+#endif /* not lint */
 
 /*
  * icheck
 
 /*
  * icheck
@@ -16,8 +23,9 @@ static char sccsid[] = "@(#)icheck.c  5.6 (Berkeley) %G%";
 #define        MAXNINDIR       (MAXBSIZE / sizeof (daddr_t))
 
 #include <sys/param.h>
 #define        MAXNINDIR       (MAXBSIZE / sizeof (daddr_t))
 
 #include <sys/param.h>
-#include <ufs/dinode.h>
-#include <ufs/fs.h>
+#include <sys/time.h>
+#include <ufs/ufs/dinode.h>
+#include <ufs/ffs/fs.h>
 #ifndef STANDALONE
 #include <stdio.h>
 #endif
 #ifndef STANDALONE
 #include <stdio.h>
 #endif
@@ -94,7 +102,7 @@ main(argc, argv)
                        continue;
 
                case 'b':
                        continue;
 
                case 'b':
-                       for(i=0; i<NB; i++) {
+                       for(i=0; i<NB && argc >= 2; i++) {
                                n = atol(argv[1]);
                                if(n == 0)
                                        break;
                                n = atol(argv[1]);
                                if(n == 0)
                                        break;