From: Theodore Ts'o Date: Wed, 22 Jul 2009 06:38:16 +0000 (-0400) Subject: libext2fs: Use blk_t instead of int in ext2fs_allocate_group_table X-Git-Tag: v1.41.9~28 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=1451c20109608ef4925f103090dee3771aa44570;p=tools%2Fe2fsprogs.git 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" --- diff --git a/lib/ext2fs/alloc_tables.c b/lib/ext2fs/alloc_tables.c index 9b4c057..8547ad6 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,