diff options
author | Theodore Ts'o <tytso@mit.edu> | 2003-12-07 01:28:50 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2003-12-07 01:28:50 -0500 |
commit | 544349270e4c74a6feb971123884a8cf5052a7ee (patch) | |
tree | 7c3c483148953f1cd5eadc9cf5eb6f7faabc31c5 /resize/main.c | |
parent | 3de085dd4109e6a7049dd6b85abf0313167cab5b (diff) | |
download | e2fsprogs-544349270e4c74a6feb971123884a8cf5052a7ee.tar.gz |
Fix gcc -Wall nitpicks
Diffstat (limited to 'resize/main.c')
-rw-r--r-- | resize/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resize/main.c b/resize/main.c index 649105aa..b32a7ea8 100644 --- a/resize/main.c +++ b/resize/main.c @@ -138,7 +138,7 @@ int main (int argc, char ** argv) io_manager io_ptr; char *tmp; struct stat st_buf; - int sys_page_size = 4096; + unsigned int sys_page_size = 4096; long sysval; #ifdef ENABLE_NLS @@ -265,9 +265,9 @@ int main (int argc, char ** argv) exit(1); } if (units) { - if (units < fs->blocksize) + if ((unsigned) units < fs->blocksize) new_size = (new_size * units) / fs->blocksize; - else if (units > fs->blocksize) + else if ((unsigned) units > fs->blocksize) new_size = new_size * (units / fs->blocksize); } if (!new_size) { |