aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-08-12 14:14:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-08-12 14:14:45 +0200
commit7783248eaac715b813f0635b06cc140ea99bb4d9 (patch)
treeb7c3acbdf7e45afdb31a721a693f0a8a65f80730 /util-linux
parent7bfbbd434a6f435b0287cd25406927c630b03f68 (diff)
downloadbusybox-w32-7783248eaac715b813f0635b06cc140ea99bb4d9.tar.gz
busybox-w32-7783248eaac715b813f0635b06cc140ea99bb4d9.tar.bz2
busybox-w32-7783248eaac715b813f0635b06cc140ea99bb4d9.zip
*: s/xatoi_u/xatoi_positive/g - I got bored of mistyping xatoi_u as xatou_i
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/flock.c2
-rw-r--r--util-linux/hexdump.c2
-rw-r--r--util-linux/mount.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/flock.c b/util-linux/flock.c
index 78b1e4ba3..be3d552fa 100644
--- a/util-linux/flock.c
+++ b/util-linux/flock.c
@@ -40,7 +40,7 @@ int flock_main(int argc UNUSED_PARAM, char **argv)
40 bb_perror_msg_and_die("can't open '%s'", argv[0]); 40 bb_perror_msg_and_die("can't open '%s'", argv[0]);
41 //TODO? close_on_exec_on(fd); 41 //TODO? close_on_exec_on(fd);
42 } else { 42 } else {
43 fd = xatoi_u(argv[0]); 43 fd = xatoi_positive(argv[0]);
44 } 44 }
45 argv++; 45 argv++;
46 46
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index 2eb5e57ae..7b89e6fdc 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -90,7 +90,7 @@ int hexdump_main(int argc, char **argv)
90 bb_dump_addfile(dumper, optarg); 90 bb_dump_addfile(dumper, optarg);
91 } /* else */ 91 } /* else */
92 if (ch == 'n') { 92 if (ch == 'n') {
93 dumper->dump_length = xatoi_u(optarg); 93 dumper->dump_length = xatoi_positive(optarg);
94 } /* else */ 94 } /* else */
95 if (ch == 's') { /* compat: -s accepts hex numbers too */ 95 if (ch == 's') { /* compat: -s accepts hex numbers too */
96 dumper->dump_skip = xstrtoul_range_sfx(optarg, /*base:*/ 0, /*lo:*/ 0, /*hi:*/ LONG_MAX, suffixes); 96 dumper->dump_skip = xstrtoul_range_sfx(optarg, /*base:*/ 0, /*lo:*/ 0, /*hi:*/ LONG_MAX, suffixes);
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 9107e4308..aa17872da 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1147,7 +1147,7 @@ static NOINLINE int nfsmount(struct mntent *mp, long vfsflags, char *filteropts)
1147 continue; 1147 continue;
1148 } 1148 }
1149 1149
1150 val = xatoi_u(opteq); 1150 val = xatoi_positive(opteq);
1151 switch (idx) { 1151 switch (idx) {
1152 case 0: // "rsize" 1152 case 0: // "rsize"
1153 data.rsize = val; 1153 data.rsize = val;