mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Reference in a new issue