diff options
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/fsck.c | 4 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/mke2fs.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c index 7c449e3..d694bb1 100644 --- a/e2fsprogs/fsck.c +++ b/e2fsprogs/fsck.c @@ -972,13 +972,13 @@ int fsck_main(int argc UNUSED_PARAM, char **argv) case 'C': progress = 1; if (arg[++j]) { /* -Cn */ - progress_fd = xatoi_u(&arg[j]); + progress_fd = xatoi_positive(&arg[j]); goto next_arg; } /* -C n */ if (!*++argv) bb_show_usage(); - progress_fd = xatoi_u(*argv); + progress_fd = xatoi_positive(*argv); goto next_arg; #endif case 'V': diff --git a/e2fsprogs/old_e2fsprogs/mke2fs.c b/e2fsprogs/old_e2fsprogs/mke2fs.c index 5203645..f1e97b9 100644 --- a/e2fsprogs/old_e2fsprogs/mke2fs.c +++ b/e2fsprogs/old_e2fsprogs/mke2fs.c @@ -895,7 +895,7 @@ static int PRS(int argc, char **argv) creator_os = optarg; break; case 'r': - param.s_rev_level = xatoi_u(optarg); + param.s_rev_level = xatoi_positive(optarg); if (param.s_rev_level == EXT2_GOOD_OLD_REV) { param.s_feature_incompat = 0; param.s_feature_compat = 0; @@ -912,11 +912,11 @@ static int PRS(int argc, char **argv) break; #ifdef EXT2_DYNAMIC_REV case 'I': - inode_size = xatoi_u(optarg); + inode_size = xatoi_positive(optarg); break; #endif case 'N': - num_inodes = xatoi_u(optarg); + num_inodes = xatoi_positive(optarg); break; case 'v': quiet = 0; |