diff options
Diffstat (limited to 'sys/libkern/strtoul.c')
-rw-r--r-- | sys/libkern/strtoul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libkern/strtoul.c b/sys/libkern/strtoul.c index 5c97ca9..f7399dc 100644 --- a/sys/libkern/strtoul.c +++ b/sys/libkern/strtoul.c @@ -103,6 +103,6 @@ strtoul(nptr, endptr, base) } else if (neg) acc = -acc; if (endptr != 0) - *((const char **)endptr) = any ? s - 1 : nptr; + *endptr = __DECONST(char *, any ? s - 1 : nptr); return (acc); } |