diff options
author | Andreas Dilger <adilger@whamcloud.com> | 2020-02-06 18:09:39 -0700 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-02-29 18:26:38 -0500 |
commit | 382ed4a1c2b60acb9db7631e86dda207bde6076e (patch) | |
tree | c41e4d4412123c5d789f650179f07f4aeea865e0 /misc/tune2fs.c | |
parent | 74fbba1ff1074333eedaa3ed46597294641bf6b8 (diff) | |
download | e2fsprogs-382ed4a1c2b60acb9db7631e86dda207bde6076e.tar.gz |
e2fsck: use proper types for variables
Use ext2_ino_t instead of ino_t for referencing inode numbers.
Use loff_t for for file offsets, and dgrp_t for group numbers.
Cast products to ssize_t before multiplication to avoid overflow.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Reviewed-by: Shilong Wang <wshilong@ddn.com>
Lustre-bug-id: https://jira.whamcloud.com/browse/LU-13197
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc/tune2fs.c')
-rw-r--r-- | misc/tune2fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 923fbb7a..39cf8587 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -365,7 +365,7 @@ static errcode_t remove_journal_inode(ext2_filsys fs) { struct ext2_inode inode; errcode_t retval; - ino_t ino = fs->super->s_journal_inum; + ext2_ino_t ino = fs->super->s_journal_inum; retval = ext2fs_read_inode(fs, ino, &inode); if (retval) { |