aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Dilger <adilger@dilger.ca>2021-01-24 16:20:06 -0700
committerTheodore Ts'o <tytso@mit.edu>2021-02-07 20:30:21 -0500
commitf41c7da2e4342bdc8e7e1a43416958bd874fc771 (patch)
tree3afc4adf5b1f9cdf2747842bb55e76ee6c67e888
parentee2ee8343ee14f57759ea251e986e0cd390d6ba0 (diff)
downloade2fsprogs-f41c7da2e4342bdc8e7e1a43416958bd874fc771.tar.gz
misc: fix minor llvm warnings
Fix a couple minor type mismatch warnings. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--debugfs/logdump.c2
-rw-r--r--lib/ext2fs/link.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/debugfs/logdump.c b/debugfs/logdump.c
index a94043f3b..354bc9695 100644
--- a/debugfs/logdump.c
+++ b/debugfs/logdump.c
@@ -536,7 +536,7 @@ static void dump_fc_block(FILE *out_file, char *buf, int blocksize,
(struct ext4_fc_add_range *)ext4_fc_tag_val(tl);
ex = (struct ext3_extent *)add_range->fc_ex;
fprintf(out_file,
- "tag %s, inode %d, lblk %lu, pblk %llu, len %lu\n",
+ "tag %s, inode %d, lblk %u, pblk %llu, len %lu\n",
tag2str(tl->fc_tag),
le32_to_cpu(add_range->fc_ino),
le32_to_cpu(ex->ee_block),
diff --git a/lib/ext2fs/link.c b/lib/ext2fs/link.c
index 469eea8cd..4160ac65d 100644
--- a/lib/ext2fs/link.c
+++ b/lib/ext2fs/link.c
@@ -381,7 +381,7 @@ static errcode_t dx_split_leaf(ext2_filsys fs, ext2_ino_t dir,
struct ext2_dir_entry *de;
void *buf2;
errcode_t retval = 0;
- int rec_len;
+ unsigned int rec_len;
int offset, move_size;
int i, count = 0;
struct dx_hash_map *map;