Fix warning when compiling with gcc46:
error: variable 'inumber' set but not used Approved by: dim MFC after: 3 days
This commit is contained in:
parent
4417a80129
commit
507d0cc96a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user