aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/stdlib.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-09-23 15:32:24 -0700
committerDan Albert <danalbert@google.com>2014-09-23 15:32:24 -0700
commit3c5037f1b3b747e79d17a5f717d9f9c365132d33 (patch)
tree73805e82ebef155bd7ffb45cf826f9624c47799b /libc/include/stdlib.h
parent87b6906f6e0c17b2541535be8e054324cc2fef4a (diff)
downloadandroid_bionic-3c5037f1b3b747e79d17a5f717d9f9c365132d33.tar.gz
android_bionic-3c5037f1b3b747e79d17a5f717d9f9c365132d33.tar.bz2
android_bionic-3c5037f1b3b747e79d17a5f717d9f9c365132d33.zip
Fix incorrect parameter types for locale funcs.
strtoll(3), strtoull(3), wcstoll(3), and wcstoull(3) all take an _int_ as a base, not a size_t. This is an ABI compatibility issue. Bug: 17628622 Change-Id: I17f8eead34ce2112005899fc30162067573023ec
Diffstat (limited to 'libc/include/stdlib.h')
-rw-r--r--libc/include/stdlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h
index 52f71dd47..52f371b68 100644
--- a/libc/include/stdlib.h
+++ b/libc/include/stdlib.h
@@ -76,8 +76,8 @@ extern float strtof(const char*, char**) __LIBC_ABI_PUBLIC__;
extern long double strtold(const char*, char**) __LIBC_ABI_PUBLIC__;
extern long double strtold_l(const char *, char **, locale_t) __LIBC_ABI_PUBLIC__;
-extern long long strtoll_l(const char *, char **, size_t, locale_t) __LIBC_ABI_PUBLIC__;
-extern unsigned long long strtoull_l(const char *, char **, size_t, locale_t) __LIBC_ABI_PUBLIC__;
+extern long long strtoll_l(const char *, char **, int, locale_t) __LIBC_ABI_PUBLIC__;
+extern unsigned long long strtoull_l(const char *, char **, int, locale_t) __LIBC_ABI_PUBLIC__;
extern int atoi(const char*) __purefunc;
extern long atol(const char*) __purefunc;