summaryrefslogtreecommitdiffstats
path: root/sbin/growfs
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2010-02-11 06:42:08 +0000
committermckusick <mckusick@FreeBSD.org>2010-02-11 06:42:08 +0000
commit33a35ba3656f195a38293d2e2f8564f3f4377433 (patch)
tree5b01144b333cd60be11678d18e81f40f54517312 /sbin/growfs
parent39dab6f5753eaa62fe62bc9e95e00f99505325ac (diff)
downloadFreeBSD-src-33a35ba3656f195a38293d2e2f8564f3f4377433.zip
FreeBSD-src-33a35ba3656f195a38293d2e2f8564f3f4377433.tar.gz
Quiet spurious warnings.
Diffstat (limited to 'sbin/growfs')
-rw-r--r--sbin/growfs/growfs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index ee37a88..a715ec1 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -174,10 +174,9 @@ static void
growfs(int fsi, int fso, unsigned int Nflag)
{
DBG_FUNC("growfs")
- int i;
- int cylno, j;
time_t utime;
- int width;
+ uint cylno;
+ int i, j, width;
char tmpbuf[100];
#ifdef FSIRAND
static int randinit=0;
@@ -373,10 +372,11 @@ initcg(int cylno, time_t utime, int fso, unsigned int Nflag)
{
DBG_FUNC("initcg")
static void *iobuf;
- long d, dlower, dupper, blkno, start;
+ long blkno, start;
ufs2_daddr_t i, cbase, dmax;
struct ufs1_dinode *dp1;
struct csum *cs;
+ uint d, dupper, dlower;
if (iobuf == NULL && (iobuf = malloc(sblock.fs_bsize)) == NULL) {
errx(37, "panic: cannot allocate I/O buffer");
@@ -436,7 +436,7 @@ initcg(int cylno, time_t utime, int fso, unsigned int Nflag)
acg.cg_nextfreeoff = acg.cg_clusteroff +
howmany(fragstoblks(&sblock, sblock.fs_fpg), CHAR_BIT);
}
- if (acg.cg_nextfreeoff > sblock.fs_cgsize) {
+ if (acg.cg_nextfreeoff > (unsigned)sblock.fs_cgsize) {
/*
* This should never happen as we would have had that panic
* already on file system creation
@@ -751,7 +751,7 @@ updjcg(int cylno, time_t utime, int fsi, int fso, unsigned int Nflag)
* needed, update the free space in the superblock.
*/
acg.cg_time = utime;
- if (cylno == sblock.fs_ncg - 1) {
+ if ((unsigned)cylno == sblock.fs_ncg - 1) {
/*
* This is still the last cylinder group.
*/
@@ -945,8 +945,8 @@ updcsloc(time_t utime, int fsi, int fso, unsigned int Nflag)
int ocscg, ncscg;
int blocks;
ufs2_daddr_t cbase, dupper, odupper, d, f, g;
- int ind;
- int cylno, inc;
+ int ind, inc;
+ uint cylno;
struct gfs_bpp *bp;
int i, l;
int lcs=0;
OpenPOWER on IntegriCloud