diff options
author | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:06 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:06 +0000 |
commit | e76336791156e518c57a0aa274e1652774931971 (patch) | |
tree | 51028e29caefe265e99cac58ecb1cce380def92e /sbin/growfs/growfs.c | |
parent | 908993ebfad03e82e8f3038681a0041f4766098e (diff) | |
download | FreeBSD-src-e76336791156e518c57a0aa274e1652774931971.zip FreeBSD-src-e76336791156e518c57a0aa274e1652774931971.tar.gz |
Fix sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Diffstat (limited to 'sbin/growfs/growfs.c')
-rw-r--r-- | sbin/growfs/growfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c index 81cafea..0c16119 100644 --- a/sbin/growfs/growfs.c +++ b/sbin/growfs/growfs.c @@ -324,6 +324,7 @@ initcg(int cylno, time_t modtime, int fso, unsigned int Nflag) DBG_FUNC("initcg") static caddr_t iobuf; long blkno, start; + ino_t ino; ufs2_daddr_t i, cbase, dmax; struct ufs1_dinode *dp1; struct csum *cs; @@ -392,8 +393,8 @@ initcg(int cylno, time_t modtime, int fso, unsigned int Nflag) } acg.cg_cs.cs_nifree += sblock.fs_ipg; if (cylno == 0) - for (i = 0; i < ROOTINO; i++) { - setbit(cg_inosused(&acg), i); + for (ino = 0; ino < ROOTINO; ino++) { + setbit(cg_inosused(&acg), ino); acg.cg_cs.cs_nifree--; } /* |