X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Fxatonum.c;h=62bbe53e7198da50cdbf1507626c7242fcf33567;hb=3e7ecb179b193bf17323c975890eed1d025f7e4c;hp=dec3c2dc4aa5ce85373942baf2b000ad7b9f0c7c;hpb=a597aaddfa76d589d3e1a37b1f1c3401c2decffd;p=oweals%2Fbusybox.git diff --git a/libbb/xatonum.c b/libbb/xatonum.c index dec3c2dc4..62bbe53e7 100644 --- a/libbb/xatonum.c +++ b/libbb/xatonum.c @@ -4,7 +4,7 @@ * * Copyright (C) 2003 Manuel Novoa III * - * Licensed under GPLv2, see file LICENSE in this tarball for details. + * Licensed under GPLv2, see file LICENSE in this source tree. */ #include "libbb.h" @@ -34,7 +34,7 @@ #endif #if UINT_MAX != ULONG_MAX -static ATTRIBUTE_ALWAYS_INLINE +static ALWAYS_INLINE unsigned bb_strtoui(const char *str, char **end, int b) { unsigned long v = strtoul(str, end, b); @@ -59,12 +59,12 @@ unsigned bb_strtoui(const char *str, char **end, int b) /* A few special cases */ -int xatoi_u(const char *numstr) +int FAST_FUNC xatoi_positive(const char *numstr) { return xatou_range(numstr, 0, INT_MAX); } -uint16_t xatou16(const char *numstr) +uint16_t FAST_FUNC xatou16(const char *numstr) { return xatou_range(numstr, 0, 0xffff); }