diff options
author | dim <dim@FreeBSD.org> | 2015-02-02 08:05:11 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-02-02 08:05:11 +0000 |
commit | 2071e2cb3ee4f55fe85cf1c48efeedb636ff48c7 (patch) | |
tree | dc3b7983c70d5909086dfaa1b7faf4d0d014b4bc /sys/libkern/strtouq.c | |
parent | c01327573ebfe4c07f76e97b8f4579d4b70d5869 (diff) | |
download | FreeBSD-src-2071e2cb3ee4f55fe85cf1c48efeedb636ff48c7.zip FreeBSD-src-2071e2cb3ee4f55fe85cf1c48efeedb636ff48c7.tar.gz |
MFC r277901:
Fix a -Wcast-qual warning in libkern's strtol(), by using __DECONST. No
functional change.
MFC r277903:
Similar to r277901, fix more -Wcast-qual warnings in libkern's strtoq(),
strtoul() and strtouq(), by using __DECONST. No functional change.
Diffstat (limited to 'sys/libkern/strtouq.c')
-rw-r--r-- | sys/libkern/strtouq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |