diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-07-22 02:38:16 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-07-22 02:38:16 -0400 |
commit | 1451c20109608ef4925f103090dee3771aa44570 (patch) | |
tree | beed9b5fc12839bcbe62ba36bea927495c30d3a8 /lib/ext2fs | |
parent | 776a374a57881d26af6532608e0084ddc028e8ec (diff) | |
download | e2fsprogs-1451c20109608ef4925f103090dee3771aa44570.tar.gz |
libext2fs: Use blk_t instead of int in ext2fs_allocate_group_table
We are using a signed int to store a block number in
ext2fs_allocate_group_table. We don't actually do any computation or
comparisons using it, so it shouldn't cause any bugs, but it's
technically incorrect, and it's possible an overly clever compiler
might do something wrong with it.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs')
-rw-r--r-- | lib/ext2fs/alloc_tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/alloc_tables.c b/lib/ext2fs/alloc_tables.c index 9b4c0572..8547ad6e 100644 --- a/lib/ext2fs/alloc_tables.c +++ b/lib/ext2fs/alloc_tables.c @@ -178,7 +178,7 @@ errcode_t ext2fs_allocate_group_table(ext2_filsys fs, dgrp_t group, * Allocate the inode table */ if (flexbg_size) { - int prev_block = 0; + blk_t prev_block = 0; if (group && fs->group_desc[group-1].bg_inode_table) prev_block = fs->group_desc[group-1].bg_inode_table; group_blk = flexbg_offset(fs, group, prev_block, bmap, |