Clean up gcc -Wall complaints in resize2fs

Remove unused variables in mark_table_blocks()

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
Theodore Ts'o 2005-12-29 15:44:45 -05:00
parent fe07357f59
commit 68963d5a26
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2005-12-29 Theodore Ts'o <tytso@mit.edu>
* resize2fs.c (mark_table_blocks): Remove unused variables to
clean up gcc -Wall complaints.
* main.c (main): If the filesystem being resized is a regular
file, truncate or expand the file to match the new
filesystem size. (Addresses Debian Bug: #271607)

View File

@ -485,10 +485,8 @@ static errcode_t mark_table_blocks(ext2_filsys fs,
blk_t block, b;
unsigned int j;
dgrp_t i;
unsigned long meta_bg, meta_bg_size;
int has_super;
unsigned long meta_bg_size;
unsigned int old_desc_blocks;
errcode_t retval;
meta_bg_size = (fs->blocksize / sizeof (struct ext2_group_desc));
block = fs->super->s_first_data_block;