diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-10 02:59:43 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-10 02:59:43 +0000 |
commit | 245ae3ece216d1cc66d5a48097c8eca27a3ddc1d (patch) | |
tree | 33d1098bd7d7c40d563b091e88fe4a44a8a0a1df /sbin/fsirand | |
parent | d1a66e9a570c5626a077214af100744dcc4eaf28 (diff) | |
download | FreeBSD-src-245ae3ece216d1cc66d5a48097c8eca27a3ddc1d.zip FreeBSD-src-245ae3ece216d1cc66d5a48097c8eca27a3ddc1d.tar.gz |
Fix warning when compiling with gcc46:
error: variable 'inumber' set but not used
Approved by: dim
MFC after: 3 days
Diffstat (limited to 'sbin/fsirand')
-rw-r--r-- | sbin/fsirand/fsirand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c index c3ae3e0..ca7841a 100644 --- a/sbin/fsirand/fsirand.c +++ b/sbin/fsirand/fsirand.c @@ -115,7 +115,7 @@ fsirand(char *device) caddr_t inodebuf; ssize_t ibufsize; struct fs *sblock; - ino_t inumber, maxino; + ino_t inumber; ufs2_daddr_t sblockloc, dblk; char sbuf[SBLOCKSIZE], sbuftmp[SBLOCKSIZE]; int i, devfd, n, cg; @@ -165,7 +165,6 @@ fsirand(char *device) fprintf(stderr, "Cannot find file system superblock\n"); return (1); } - maxino = sblock->fs_ncg * sblock->fs_ipg; if (sblock->fs_magic == FS_UFS1_MAGIC && sblock->fs_old_inodefmt < FS_44INODEFMT) { |