diff options
| author | Theodore Ts'o <tytso@mit.edu> | 2013-12-02 21:53:56 -0500 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2013-12-02 22:04:25 -0500 |
| commit | b70483742b7ad993b574fbfb96ce77f5c05c84f9 (patch) | |
| tree | e18bebe0f3c32fb57c28f243f8133cb2423d4f00 /lib/ext2fs | |
| parent | 26da661447f1b7cb49864590fc42f405f0d9a328 (diff) | |
| download | android_external_e2fsprogs-b70483742b7ad993b574fbfb96ce77f5c05c84f9.tar.gz android_external_e2fsprogs-b70483742b7ad993b574fbfb96ce77f5c05c84f9.tar.bz2 android_external_e2fsprogs-b70483742b7ad993b574fbfb96ce77f5c05c84f9.zip | |
libext2fs: add explicit casts to ext2fs.h
Add some explicit casts to silence some -Wconversion noise.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs')
| -rw-r--r-- | lib/ext2fs/ext2fs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h index b7a784ee..eb1901e7 100644 --- a/lib/ext2fs/ext2fs.h +++ b/lib/ext2fs/ext2fs.h @@ -1673,14 +1673,14 @@ _INLINE_ int ext2fs_test_bb_dirty(ext2_filsys fs) /* * Return the group # of a block */ -_INLINE_ int ext2fs_group_of_blk(ext2_filsys fs, blk_t blk) +_INLINE_ dgrp_t ext2fs_group_of_blk(ext2_filsys fs, blk_t blk) { return ext2fs_group_of_blk2(fs, blk); } /* * Return the group # of an inode number */ -_INLINE_ int ext2fs_group_of_ino(ext2_filsys fs, ext2_ino_t ino) +_INLINE_ dgrp_t ext2fs_group_of_ino(ext2_filsys fs, ext2_ino_t ino) { return (ino - 1) / fs->super->s_inodes_per_group; } @@ -1690,7 +1690,7 @@ _INLINE_ int ext2fs_group_of_ino(ext2_filsys fs, ext2_ino_t ino) */ _INLINE_ blk_t ext2fs_group_first_block(ext2_filsys fs, dgrp_t group) { - return ext2fs_group_first_block2(fs, group); + return (blk_t) ext2fs_group_first_block2(fs, group); } /* @@ -1698,13 +1698,13 @@ _INLINE_ blk_t ext2fs_group_first_block(ext2_filsys fs, dgrp_t group) */ _INLINE_ blk_t ext2fs_group_last_block(ext2_filsys fs, dgrp_t group) { - return ext2fs_group_last_block2(fs, group); + return (blk_t) ext2fs_group_last_block2(fs, group); } _INLINE_ blk_t ext2fs_inode_data_blocks(ext2_filsys fs, struct ext2_inode *inode) { - return ext2fs_inode_data_blocks2(fs, inode); + return (blk_t) ext2fs_inode_data_blocks2(fs, inode); } /* |
