svn commit: r229917 - head/sbin/fsirand
Eitan Adler
eadler at FreeBSD.org
Tue Jan 10 02:59:44 UTC 2012
Author: eadler (ports committer)
Date: Tue Jan 10 02:59:43 2012
New Revision: 229917
URL: http://svn.freebsd.org/changeset/base/229917
Log:
Fix warning when compiling with gcc46:
error: variable 'inumber' set but not used
Approved by: dim
MFC after: 3 days
Modified:
head/sbin/fsirand/fsirand.c
Modified: head/sbin/fsirand/fsirand.c
==============================================================================
--- head/sbin/fsirand/fsirand.c Tue Jan 10 02:59:35 2012 (r229916)
+++ head/sbin/fsirand/fsirand.c Tue Jan 10 02:59:43 2012 (r229917)
@@ -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) {
More information about the svn-src-all
mailing list