aboutsummaryrefslogtreecommitdiff
path: root/libbb/xatonum.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-16 23:48:13 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-16 23:48:13 +0000
commita597aaddfa76d589d3e1a37b1f1c3401c2decffd (patch)
tree1db4966ffc99ad3c495bd18d6f7040e1515e79d7 /libbb/xatonum.c
parent3469c185e50e7bb672ce33ab5e50da753f0f0e20 (diff)
downloadbusybox-w32-a597aaddfa76d589d3e1a37b1f1c3401c2decffd.tar.gz
busybox-w32-a597aaddfa76d589d3e1a37b1f1c3401c2decffd.tar.bz2
busybox-w32-a597aaddfa76d589d3e1a37b1f1c3401c2decffd.zip
s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/g
xstrtou: disallow leading '+'
Diffstat (limited to 'libbb/xatonum.c')
-rw-r--r--libbb/xatonum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/xatonum.c b/libbb/xatonum.c
index 35607c317..dec3c2dc4 100644
--- a/libbb/xatonum.c
+++ b/libbb/xatonum.c
@@ -34,7 +34,8 @@
34#endif 34#endif
35 35
36#if UINT_MAX != ULONG_MAX 36#if UINT_MAX != ULONG_MAX
37extern inline unsigned bb_strtoui(const char *str, char **end, int b) 37static ATTRIBUTE_ALWAYS_INLINE
38unsigned bb_strtoui(const char *str, char **end, int b)
38{ 39{
39 unsigned long v = strtoul(str, end, b); 40 unsigned long v = strtoul(str, end, b);
40 if (v > UINT_MAX) { 41 if (v > UINT_MAX) {