diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-12 14:14:45 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-12 14:14:45 +0200 |
commit | 7783248eaac715b813f0635b06cc140ea99bb4d9 (patch) | |
tree | b7c3acbdf7e45afdb31a721a693f0a8a65f80730 /libbb | |
parent | 7bfbbd434a6f435b0287cd25406927c630b03f68 (diff) | |
download | busybox-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 'libbb')
-rw-r--r-- | libbb/getopt32.c | 6 | ||||
-rw-r--r-- | libbb/xatonum.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c index b5f83c127..8c87fe3f0 100644 --- a/libbb/getopt32.c +++ b/libbb/getopt32.c | |||
@@ -233,7 +233,7 @@ Special characters: | |||
233 | 233 | ||
234 | "a+" A plus after a char in opt_complementary means that the parameter | 234 | "a+" A plus after a char in opt_complementary means that the parameter |
235 | for this option is a nonnegative integer. It will be processed | 235 | for this option is a nonnegative integer. It will be processed |
236 | with xatoi_u() - allowed range is 0..INT_MAX. | 236 | with xatoi_positive() - allowed range is 0..INT_MAX. |
237 | 237 | ||
238 | int param; // "unsigned param;" will also work | 238 | int param; // "unsigned param;" will also work |
239 | opt_complementary = "p+"; | 239 | opt_complementary = "p+"; |
@@ -579,8 +579,8 @@ getopt32(char **argv, const char *applet_opts, ...) | |||
579 | llist_add_to_end((llist_t **)(on_off->optarg), optarg); | 579 | llist_add_to_end((llist_t **)(on_off->optarg), optarg); |
580 | } else if (on_off->param_type == PARAM_INT) { | 580 | } else if (on_off->param_type == PARAM_INT) { |
581 | if (optarg) | 581 | if (optarg) |
582 | //TODO: xatoi_u indirectly pulls in printf machinery | 582 | //TODO: xatoi_positive indirectly pulls in printf machinery |
583 | *(unsigned*)(on_off->optarg) = xatoi_u(optarg); | 583 | *(unsigned*)(on_off->optarg) = xatoi_positive(optarg); |
584 | } else if (on_off->optarg) { | 584 | } else if (on_off->optarg) { |
585 | if (optarg) | 585 | if (optarg) |
586 | *(char **)(on_off->optarg) = optarg; | 586 | *(char **)(on_off->optarg) = optarg; |
diff --git a/libbb/xatonum.c b/libbb/xatonum.c index 3cdf63425..60b65f525 100644 --- a/libbb/xatonum.c +++ b/libbb/xatonum.c | |||
@@ -59,7 +59,7 @@ unsigned bb_strtoui(const char *str, char **end, int b) | |||
59 | 59 | ||
60 | /* A few special cases */ | 60 | /* A few special cases */ |
61 | 61 | ||
62 | int FAST_FUNC xatoi_u(const char *numstr) | 62 | int FAST_FUNC xatoi_positive(const char *numstr) |
63 | { | 63 | { |
64 | return xatou_range(numstr, 0, INT_MAX); | 64 | return xatou_range(numstr, 0, INT_MAX); |
65 | } | 65 | } |