aboutsummaryrefslogtreecommitdiff
path: root/sbin/growfs/debug.c
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-09-25 04:06:37 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-09-25 04:06:37 +0000
commit89fdc4e117285d001665922c93080c804a8f8810 (patch)
tree2295edf76df9065e84ea0b415c9c13ecf434f1fa /sbin/growfs/debug.c
parentdf93d794dccd272ca6d809e325cd381faeb6a4df (diff)
downloadsrc-89fdc4e117285d001665922c93080c804a8f8810.tar.gz
src-89fdc4e117285d001665922c93080c804a8f8810.zip
Use the standardized CHAR_BIT constant instead of NBBY in userland.
Notes
Notes: svn path=/head/; revision=103949
Diffstat (limited to 'sbin/growfs/debug.c')
-rw-r--r--sbin/growfs/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/growfs/debug.c b/sbin/growfs/debug.c
index 3fe263f7d6b9..5b62bddeabb9 100644
--- a/sbin/growfs/debug.c
+++ b/sbin/growfs/debug.c
@@ -47,6 +47,7 @@ static const char rcsid[] =
/* ********************************************************** INCLUDES ***** */
#include <sys/param.h>
+#include <limits.h>
#include <stdio.h>
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
@@ -456,7 +457,7 @@ dbg_dump_frmap(struct fs *sb, const char *comment, struct cg *cgr)
indent++;
cp=(unsigned char *)cg_blksfree(cgr);
- e=howmany((sb->fs_cpg * sb->fs_spc / NSPF(sb)), NBBY);
+ e=howmany((sb->fs_cpg * sb->fs_spc / NSPF(sb)), CHAR_BIT);
for(j=0; j<e; j+=32) {
fprintf(dbg_log, "%08x: ", j);
for(k=0; k<32; k+=8) {
@@ -500,7 +501,7 @@ dbg_dump_clmap(struct fs *sb, const char *comment, struct cg *cgr)
indent++;
cp=(unsigned char *)cg_clustersfree(cgr);
- e=howmany(sb->fs_cpg * sb->fs_spc / NSPB(sb), NBBY);
+ e=howmany(sb->fs_cpg * sb->fs_spc / NSPB(sb), CHAR_BIT);
for(j=0; j<e; j+=32) {
fprintf(dbg_log, "%08x: ", j);
for(k=0; k<32; k+=8) {