diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-01-30 23:09:20 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-01-30 23:09:20 +0000 |
commit | 3496fdc9a573a424e34141cbe04250cc8df15e32 (patch) | |
tree | a78bfa0e539dcdbb024ed1acb9fba333dfacc228 /e2fsprogs/mke2fs.c | |
parent | a68ea1cb93c29125bc4f30ddd415fca02249e010 (diff) |
hopefully the last of the annoying signed/unsigned and mixed type errors
Diffstat (limited to 'e2fsprogs/mke2fs.c')
-rw-r--r-- | e2fsprogs/mke2fs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/e2fsprogs/mke2fs.c b/e2fsprogs/mke2fs.c index 10563e2d9..09d42aacf 100644 --- a/e2fsprogs/mke2fs.c +++ b/e2fsprogs/mke2fs.c @@ -878,8 +878,12 @@ BLOCKSIZE_ERROR: mke2fs_warning_msg(1, "fragments not supported. Ignoring -f option"); break; case 'g': - if (safe_strtoi(optarg, ¶m.s_blocks_per_group)) { + { + int foo; + if (safe_strtoi(optarg, &foo)) { bb_error_msg_and_die("Illegal number for blocks per group"); + } + param.s_blocks_per_group = foo; } if ((param.s_blocks_per_group % 8) != 0) { bb_error_msg_and_die("blocks per group must be multiple of 8"); |