summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2005-12-29 15:44:45 -0500
committerTheodore Ts'o <tytso@mit.edu>2005-12-29 15:44:45 -0500
commit68963d5a262ad49cbdad8f946e59ebc34677fe33 (patch)
tree5c72cb14d058cb70bf677e82d297b624a0fe5dd7
parentfe07357f590d2606fe9641e277c171c4f7dcc512 (diff)
downloade2fsprogs-68963d5a262ad49cbdad8f946e59ebc34677fe33.tar.gz
Clean up gcc -Wall complaints in resize2fs
Remove unused variables in mark_table_blocks() Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--resize/ChangeLog3
-rw-r--r--resize/resize2fs.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/resize/ChangeLog b/resize/ChangeLog
index 8a3fde27..a6b2ac39 100644
--- a/resize/ChangeLog
+++ b/resize/ChangeLog
@@ -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)
diff --git a/resize/resize2fs.c b/resize/resize2fs.c
index 695bf7b6..4eefd0d4 100644
--- a/resize/resize2fs.c
+++ b/resize/resize2fs.c
@@ -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;