diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/libkern/strtol.c | 2 | ||||
-rw-r--r-- | sys/libkern/strtoq.c | 2 | ||||
-rw-r--r-- | sys/libkern/strtoul.c | 2 | ||||
-rw-r--r-- | sys/libkern/strtouq.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/libkern/strtol.c b/sys/libkern/strtol.c index 3d734ab..4d64025 100644 --- a/sys/libkern/strtol.c +++ b/sys/libkern/strtol.c @@ -124,6 +124,6 @@ strtol(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); } diff --git a/sys/libkern/strtoq.c b/sys/libkern/strtoq.c index ea4e7ed..d855056 100644 --- a/sys/libkern/strtoq.c +++ b/sys/libkern/strtoq.c @@ -125,6 +125,6 @@ strtoq(const char *nptr, char **endptr, int 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); } 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); } diff --git a/sys/libkern/strtouq.c b/sys/libkern/strtouq.c index 5877396..f8303a0 100644 --- a/sys/libkern/strtouq.c +++ b/sys/libkern/strtouq.c @@ -102,6 +102,6 @@ strtouq(const char *nptr, char **endptr, int 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); } |