summaryrefslogtreecommitdiff
path: root/src/stdlib/strtoimax.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-14 19:33:11 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-14 19:33:11 -0500
commitc247ebdd989365d20da3ce41fdeb2002e0a1ba13 (patch)
tree8bb6738a2b6e1503b012a995245ae6fbdea2ff6f /src/stdlib/strtoimax.c
parent5377715ce07269131f011e6f4e978fb5dbf0b294 (diff)
downloadmusl-c247ebdd989365d20da3ce41fdeb2002e0a1ba13.tar.gz
musl-c247ebdd989365d20da3ce41fdeb2002e0a1ba13.tar.bz2
musl-c247ebdd989365d20da3ce41fdeb2002e0a1ba13.tar.xz
musl-c247ebdd989365d20da3ce41fdeb2002e0a1ba13.zip
more header fixes, minor warning fix
Diffstat (limited to 'src/stdlib/strtoimax.c')
-rw-r--r--src/stdlib/strtoimax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib/strtoimax.c b/src/stdlib/strtoimax.c
index 19691091..aeb0397f 100644
--- a/src/stdlib/strtoimax.c
+++ b/src/stdlib/strtoimax.c
@@ -4,7 +4,7 @@
intmax_t strtoimax(const char *s1, char **p, int base)
{
- const unsigned char *s = s1;
+ const unsigned char *s = (const void *)s1;
int sign = 0;
uintmax_t x;
@@ -15,7 +15,7 @@ intmax_t strtoimax(const char *s1, char **p, int base)
if (*s == '-') sign = *s++;
else if (*s == '+') s++;
- x = strtoumax(s, p, base);
+ x = strtoumax((const void *)s, p, base);
if (x > INTMAX_MAX) {
if (!sign || -x != INTMAX_MIN)
errno = ERANGE;