the whole map is always dumped anyway, so just calculate its size
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 23 Aug 1989 05:04:36 +0000 (21:04 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 23 Aug 1989 05:04:36 +0000 (21:04 -0800)
and be done with it (allegra!jpl@research.att.com)

SCCS-vsn: sbin/dump/itime.c 5.3

usr/src/sbin/dump/itime.c

index aadae47..ba4e3f6 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)itime.c    5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)itime.c    5.3 (Berkeley) %G%";
 #endif not lint
 
 #include "dump.h"
 #endif not lint
 
 #include "dump.h"
@@ -246,15 +246,7 @@ est(ip)
 bmapest(map)
        char *map;
 {
 bmapest(map)
        char *map;
 {
-       register i, n;
 
 
-       n = -1;
-       for (i = 0; i < msiz; i++)
-               if(map[i])
-                       n = i;
-       if(n < 0)
-               return;
-       n++;
        esize++;
        esize++;
-       esize += howmany(n * sizeof map[0], TP_BSIZE);
+       esize += howmany(msiz * sizeof map[0], TP_BSIZE);
 }
 }