From 7783248eaac715b813f0635b06cc140ea99bb4d9 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 12 Aug 2010 14:14:45 +0200 Subject: *: s/xatoi_u/xatoi_positive/g - I got bored of mistyping xatoi_u as xatou_i Signed-off-by: Denys Vlasenko --- libbb/getopt32.c | 6 +++--- libbb/xatonum.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'libbb') diff --git a/libbb/getopt32.c b/libbb/getopt32.c index b5f83c1..8c87fe3 100644 --- a/libbb/getopt32.c +++ b/libbb/getopt32.c @@ -233,7 +233,7 @@ Special characters: "a+" A plus after a char in opt_complementary means that the parameter for this option is a nonnegative integer. It will be processed - with xatoi_u() - allowed range is 0..INT_MAX. + with xatoi_positive() - allowed range is 0..INT_MAX. int param; // "unsigned param;" will also work opt_complementary = "p+"; @@ -579,8 +579,8 @@ getopt32(char **argv, const char *applet_opts, ...) llist_add_to_end((llist_t **)(on_off->optarg), optarg); } else if (on_off->param_type == PARAM_INT) { if (optarg) -//TODO: xatoi_u indirectly pulls in printf machinery - *(unsigned*)(on_off->optarg) = xatoi_u(optarg); +//TODO: xatoi_positive indirectly pulls in printf machinery + *(unsigned*)(on_off->optarg) = xatoi_positive(optarg); } else if (on_off->optarg) { if (optarg) *(char **)(on_off->optarg) = optarg; diff --git a/libbb/xatonum.c b/libbb/xatonum.c index 3cdf634..60b65f5 100644 --- a/libbb/xatonum.c +++ b/libbb/xatonum.c @@ -59,7 +59,7 @@ unsigned bb_strtoui(const char *str, char **end, int b) /* A few special cases */ -int FAST_FUNC xatoi_u(const char *numstr) +int FAST_FUNC xatoi_positive(const char *numstr) { return xatou_range(numstr, 0, INT_MAX); } -- cgit v1.1