aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-05-20 09:21:34 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-05-20 09:21:34 -0400
commit4cf7a7014a209b82aada9b5d83ecdb9b07e60a1a (patch)
treeb35866683fd2c02f8d0448788a4f52f3935420dd
parentfd9ca825996d61ad7c77edded827c661a458b500 (diff)
downloade2fsprogs-4cf7a7014a209b82aada9b5d83ecdb9b07e60a1a.tar.gz
e2fsprogs-4cf7a7014a209b82aada9b5d83ecdb9b07e60a1a.tar.xz
e2fsprogs-4cf7a7014a209b82aada9b5d83ecdb9b07e60a1a.zip
misc: fix gcc -Wall nits
[For 1.43 branch] Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--misc/dumpe2fs.c2
-rw-r--r--misc/tune2fs.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c
index e18843ee..5369ffbc 100644
--- a/misc/dumpe2fs.c
+++ b/misc/dumpe2fs.c
@@ -324,7 +324,7 @@ static void list_bad_blocks(ext2_filsys fs, int dump)
ext2fs_badblocks_list_free(bb_list);
}
-static char *journal_checksum_type_str(__u8 type)
+static const char *journal_checksum_type_str(__u8 type)
{
switch (type) {
case JBD2_CRC32C_CHKSUM:
diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index 4f8cedca..7d6520e5 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -448,7 +448,7 @@ struct rewrite_dir_context {
static int rewrite_dir_block(ext2_filsys fs,
blk64_t *blocknr,
- e2_blkcnt_t blockcnt,
+ e2_blkcnt_t blockcnt EXT2FS_ATTR((unused)),
blk64_t ref_block EXT2FS_ATTR((unused)),
int ref_offset EXT2FS_ATTR((unused)),
void *priv_data)
@@ -510,7 +510,7 @@ static int rewrite_dir_block(ext2_filsys fs,
ctx->errcode = EXT2_ET_DIR_CORRUPTED;
if (ctx->errcode)
return BLOCK_ABORT;
- de = (struct ext2_dir_entry *)(((void *)de) + rec_len);
+ de = (struct ext2_dir_entry *)(((char *)de) + rec_len);
}
ctx->errcode = ext2fs_get_rec_len(fs, last_de, &rec_len);
if (ctx->errcode)
@@ -540,7 +540,7 @@ static int rewrite_dir_block(ext2_filsys fs,
penultimate_de);
changed = 1;
} else {
- int csum_size = sizeof(struct ext2_dir_entry_tail);
+ unsigned csum_size = sizeof(struct ext2_dir_entry_tail);
struct ext2_dir_entry_tail *t;
/*
@@ -584,8 +584,8 @@ out:
return 0;
}
-errcode_t rewrite_directory(ext2_filsys fs, ext2_ino_t dir,
- struct ext2_inode *inode)
+static errcode_t rewrite_directory(ext2_filsys fs, ext2_ino_t dir,
+ struct ext2_inode *inode)
{
errcode_t retval;
struct rewrite_dir_context ctx;