aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cut.c
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 /coreutils/cut.c
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 'coreutils/cut.c')
-rw-r--r--coreutils/cut.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c
index 696478bb2..b7a3cfabb 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -224,7 +224,7 @@ int cut_main(int argc UNUSED_PARAM, char **argv)
224 if (!ntok[0]) { 224 if (!ntok[0]) {
225 s = BOL; 225 s = BOL;
226 } else { 226 } else {
227 s = xatoi_u(ntok); 227 s = xatoi_positive(ntok);
228 /* account for the fact that arrays are zero based, while 228 /* account for the fact that arrays are zero based, while
229 * the user expects the first char on the line to be char #1 */ 229 * the user expects the first char on the line to be char #1 */
230 if (s != 0) 230 if (s != 0)
@@ -237,7 +237,7 @@ int cut_main(int argc UNUSED_PARAM, char **argv)
237 } else if (!ltok[0]) { 237 } else if (!ltok[0]) {
238 e = EOL; 238 e = EOL;
239 } else { 239 } else {
240 e = xatoi_u(ltok); 240 e = xatoi_positive(ltok);
241 /* if the user specified and end position of 0, 241 /* if the user specified and end position of 0,
242 * that means "til the end of the line" */ 242 * that means "til the end of the line" */
243 if (e == 0) 243 if (e == 0)