diff options
Diffstat (limited to 'sys/libkern')
-rw-r--r-- | sys/libkern/strtol.c | 4 | ||||
-rw-r--r-- | sys/libkern/strtoq.c | 4 | ||||
-rw-r--r-- | sys/libkern/strtoul.c | 4 | ||||
-rw-r--r-- | sys/libkern/strtouq.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/libkern/strtol.c b/sys/libkern/strtol.c index 3b613f9..ccab1ef 100644 --- a/sys/libkern/strtol.c +++ b/sys/libkern/strtol.c @@ -52,7 +52,7 @@ long strtol(nptr, endptr, base) const char *nptr; - const char **endptr; + char **endptr; int base; { const char *s = nptr; @@ -127,6 +127,6 @@ strtol(nptr, endptr, base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (const char *)(any ? s - 1 : nptr); + *endptr = (char *)(any ? s - 1 : nptr); return (acc); } diff --git a/sys/libkern/strtoq.c b/sys/libkern/strtoq.c index e4b54b1..846f995 100644 --- a/sys/libkern/strtoq.c +++ b/sys/libkern/strtoq.c @@ -48,7 +48,7 @@ * alphabets and digits are each contiguous. */ quad_t -strtoq(const char *nptr, const char **endptr, int base) +strtoq(const char *nptr, char **endptr, int base) { const char *s; u_quad_t acc; @@ -128,6 +128,6 @@ strtoq(const char *nptr, const char **endptr, int base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (const char *)(any ? s - 1 : nptr); + *endptr = (char *)(any ? s - 1 : nptr); return (acc); } diff --git a/sys/libkern/strtoul.c b/sys/libkern/strtoul.c index 0f7e703..78a70e2 100644 --- a/sys/libkern/strtoul.c +++ b/sys/libkern/strtoul.c @@ -52,7 +52,7 @@ unsigned long strtoul(nptr, endptr, base) const char *nptr; - const char **endptr; + char **endptr; int base; { const char *s = nptr; @@ -106,6 +106,6 @@ strtoul(nptr, endptr, base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (const char *)(any ? s - 1 : nptr); + *endptr = (char *)(any ? s - 1 : nptr); return (acc); } diff --git a/sys/libkern/strtouq.c b/sys/libkern/strtouq.c index ac939fc..43d11fe 100644 --- a/sys/libkern/strtouq.c +++ b/sys/libkern/strtouq.c @@ -48,7 +48,7 @@ * alphabets and digits are each contiguous. */ u_quad_t -strtouq(const char *nptr, const char **endptr, int base) +strtouq(const char *nptr, char **endptr, int base) { const char *s = nptr; u_quad_t acc; @@ -106,6 +106,6 @@ strtouq(const char *nptr, const char **endptr, int base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (const char *)(any ? s - 1 : nptr); + *endptr = (char *)(any ? s - 1 : nptr); return (acc); } |