diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-05-01 02:19:49 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-05-01 02:19:49 +0000 |
commit | 312717174d2266e8e3f830bbe5238beabdaec2e6 (patch) | |
tree | 14f7983a72b5947db45cb789d7f297af70fb87aa /sbin/growfs | |
parent | e451cf5f4c5d26e0878778c6e264f4cba5ff76fb (diff) | |
download | src-312717174d2266e8e3f830bbe5238beabdaec2e6.tar.gz src-312717174d2266e8e3f830bbe5238beabdaec2e6.zip |
sbin: use our howmany() macro when available through <sys/param.h>.
Notes
Notes:
svn path=/head/; revision=298871
Diffstat (limited to 'sbin/growfs')
-rw-r--r-- | sbin/growfs/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/growfs/debug.c b/sbin/growfs/debug.c index 55e2b133cbe6..d3710133c013 100644 --- a/sbin/growfs/debug.c +++ b/sbin/growfs/debug.c @@ -518,7 +518,8 @@ dbg_dump_frmap(struct fs *sb, const char *comment, struct cg *cgr) cp = (unsigned char *)cg_blksfree(cgr); if (sb->fs_old_nspf) - e = howmany((sb->fs_old_cpg * sb->fs_old_spc / sb->fs_old_nspf), CHAR_BIT); + e = howmany(sb->fs_old_cpg * sb->fs_old_spc / sb->fs_old_nspf, + CHAR_BIT); else e = 0; for (j = 0; j < e; j += 32) { |