summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-03-02 18:35:21 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-03-02 18:35:21 +0000
commita0df5e4303f2ec308f79c5dcb305ba6e25896587 (patch)
treeb6e63dbc169a63986dd766722d2be2b002ffe250 /sbin
parent189a6e535e61f140d8a7ad2ecdc0c9e51bd822c0 (diff)
Simpler algorithm or calculating inomapsize
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsck_ffs/pass5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/pass5.c b/sbin/fsck_ffs/pass5.c
index 67d9c94e40e..5846803cb12 100644
--- a/sbin/fsck_ffs/pass5.c
+++ b/sbin/fsck_ffs/pass5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pass5.c,v 1.9 2001/03/02 14:45:30 art Exp $ */
+/* $OpenBSD: pass5.c,v 1.10 2001/03/02 18:35:20 csapuntz Exp $ */
/* $NetBSD: pass5.c,v 1.16 1996/09/27 22:45:18 christos Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)pass5.c 8.6 (Berkeley) 11/30/94";
#else
-static char rcsid[] = "$OpenBSD: pass5.c,v 1.9 2001/03/02 14:45:30 art Exp $";
+static char rcsid[] = "$OpenBSD: pass5.c,v 1.10 2001/03/02 18:35:20 csapuntz Exp $";
#endif
#endif /* not lint */
@@ -132,7 +132,7 @@ pass5()
mapsize = &ocg->cg_free[howmany(fs->fs_fpg, NBBY)] -
(u_char *)&ocg->cg_iused[0];
blkmapsize = howmany(fs->fs_fpg, NBBY);
- inomapsize = (u_char *)&ocg->cg_magic - (u_char *)&ocg->cg_iused[0];
+ inomapsize = sizeof(ocg->cg_iused);
ocg->cg_magic = CG_MAGIC;
savednrpos = fs->fs_nrpos;
fs->fs_nrpos = 8;