aboutsummaryrefslogtreecommitdiffstats
path: root/debugfs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-01-01 13:28:27 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-01-01 13:28:27 -0500
commite3507739e4185bdb2394928eb6479e48f4e690a8 (patch)
tree96606990005080b07170d45807c94a157600c027 /debugfs
parent2508eaa71e8bbe93155052ded448e5e78d213715 (diff)
downloadandroid_external_e2fsprogs-e3507739e4185bdb2394928eb6479e48f4e690a8.tar.gz
android_external_e2fsprogs-e3507739e4185bdb2394928eb6479e48f4e690a8.tar.bz2
android_external_e2fsprogs-e3507739e4185bdb2394928eb6479e48f4e690a8.zip
Fix gcc -Wall nits
This fixes the last set of gcc -Wall complaints. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'debugfs')
-rw-r--r--debugfs/extent_inode.c10
-rw-r--r--debugfs/htree.c2
-rw-r--r--debugfs/zap.c5
3 files changed, 1 insertions, 16 deletions
diff --git a/debugfs/extent_inode.c b/debugfs/extent_inode.c
index 69628a9e..d726b2b6 100644
--- a/debugfs/extent_inode.c
+++ b/debugfs/extent_inode.c
@@ -66,9 +66,8 @@ static char *orig_prompt, *extent_prompt;
void do_extent_open(int argc, char *argv[])
{
- struct ext3_extent_header *eh;
ext2_ino_t inode;
- int i, ret;
+ int ret;
errcode_t retval;
char *cp;
@@ -220,7 +219,6 @@ void do_delete_node(int argc, char *argv[])
{
struct ext2fs_extent extent;
errcode_t retval;
- int err;
if (common_extent_args_process(argc, argv, 1, 1, "delete_node",
"", CHECK_FS_RW | CHECK_FS_BITMAPS))
@@ -286,8 +284,6 @@ void do_replace_node(int argc, char *argv[])
void do_split_node(int argc, char *argv[])
{
errcode_t retval;
- struct ext2fs_extent extent;
- int err;
if (common_extent_args_process(argc, argv, 1, 1, "split_node",
"", CHECK_FS_RW | CHECK_FS_BITMAPS))
@@ -465,8 +461,6 @@ void do_print_all(int argc, char **argv)
void do_fix_parents(int argc, char **argv)
{
- struct ext2fs_extent extent;
- struct ext2_extent_info info;
errcode_t retval;
if (common_extent_args_process(argc, argv, 1, 1, "fix_parents", "",
@@ -515,9 +509,7 @@ void do_info(int argc, char **argv)
void do_goto_block(int argc, char **argv)
{
- struct ext2fs_extent extent;
errcode_t retval;
- int op = EXT2_EXTENT_NEXT_LEAF;
blk64_t blk;
int level = 0, err;
diff --git a/debugfs/htree.c b/debugfs/htree.c
index 29ddf9c5..24f8250c 100644
--- a/debugfs/htree.c
+++ b/debugfs/htree.c
@@ -201,7 +201,6 @@ void do_htree_dump(int argc, char *argv[])
char *buf = NULL;
struct ext2_dx_root_info *rootnode;
struct ext2_dx_entry *ent;
- struct ext2_dx_countlimit *limit;
errcode_t errcode;
if (check_fs_open(argv[0]))
@@ -255,7 +254,6 @@ void do_htree_dump(int argc, char *argv[])
fprintf(pager, "\t Flags: %d\n", rootnode->unused_flags);
ent = (struct ext2_dx_entry *) (buf + 24 + rootnode->info_length);
- limit = (struct ext2_dx_countlimit *) ent;
htree_dump_int_node(current_fs, ino, &inode, rootnode, ent,
buf + current_fs->blocksize,
diff --git a/debugfs/zap.c b/debugfs/zap.c
index 3f3620b4..4a1afbe0 100644
--- a/debugfs/zap.c
+++ b/debugfs/zap.c
@@ -32,9 +32,7 @@ void do_zap_block(int argc, char *argv[])
ext2_ino_t inode;
errcode_t errcode;
blk64_t block;
- int retval;
char *file = NULL;
- char *in_file = NULL;
int c, err;
int offset = -1;
int length = -1;
@@ -171,14 +169,11 @@ errout:
void do_dump_block(int argc, char *argv[])
{
- unsigned long pattern = 0;
unsigned char *buf;
ext2_ino_t inode;
errcode_t errcode;
blk64_t block;
- int retval;
char *file = NULL;
- char *in_file = NULL;
int c, err, i, j;
int suppress = -1;