aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsirand
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-01-10 02:59:43 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-01-10 02:59:43 +0000
commit507d0cc96aa05bb5ab251a74e2a1c614b9987550 (patch)
tree33d1098bd7d7c40d563b091e88fe4a44a8a0a1df /sbin/fsirand
parent4417a801290b68b26b1071cc38745f31b1aab935 (diff)
downloadsrc-507d0cc96aa05bb5ab251a74e2a1c614b9987550.tar.gz
src-507d0cc96aa05bb5ab251a74e2a1c614b9987550.zip
Fix warning when compiling with gcc46:
error: variable 'inumber' set but not used Approved by: dim MFC after: 3 days
Notes
Notes: svn path=/head/; revision=229917
Diffstat (limited to 'sbin/fsirand')
-rw-r--r--sbin/fsirand/fsirand.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c
index c3ae3e0763ad..ca7841a46f3e 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) {