diff options
author | Theodore Ts'o <tytso@mit.edu> | 2007-08-03 18:56:01 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2007-08-03 18:56:01 -0400 |
commit | d4e0b1c6f5aa8c6a248d9149ed5634a310952411 (patch) | |
tree | 5986d390c9aafb8e310a1e0b93bd7ade8a15003e /misc/util.c | |
parent | f1f115a78f5ea599fc5f8815a741d43fedd5840d (diff) | |
download | e2fsprogs-d4e0b1c6f5aa8c6a248d9149ed5634a310952411.tar.gz |
Fix gcc -Wall warnings
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/util.c')
-rw-r--r-- | misc/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/util.c b/misc/util.c index 7522e9b0..6a4c40cf 100644 --- a/misc/util.c +++ b/misc/util.c @@ -249,7 +249,7 @@ void parse_journal_opts(const char *opts) * in the filesystem. For very small filesystems, it is not reasonable to * have a journal that fills more than half of the filesystem. */ -int figure_journal_size(int size, ext2_filsys fs) +unsigned int figure_journal_size(int size, ext2_filsys fs) { int j_blocks; @@ -269,7 +269,7 @@ int figure_journal_size(int size, ext2_filsys fs) j_blocks); exit(1); } - if (j_blocks > fs->super->s_free_blocks_count / 2) { + if ((unsigned) j_blocks > fs->super->s_free_blocks_count / 2) { fputs(_("\nJournal size too big for filesystem.\n"), stderr); exit(1); |