diff options
Diffstat (limited to 'sys/libkern/strtoq.c')
-rw-r--r-- | sys/libkern/strtoq.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |