diff options
author | archie <archie@FreeBSD.org> | 1999-12-01 22:56:51 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1999-12-01 22:56:51 +0000 |
commit | 22ba6790838bbc14a95a6711a1cf074c8acaeec3 (patch) | |
tree | 84299adfa6c1e467b66955deed68a3e9df7b0300 /sys | |
parent | 8e6dc36b73cc5b08e51f9c0baf804c7a01842fbf (diff) | |
download | FreeBSD-src-22ba6790838bbc14a95a6711a1cf074c8acaeec3.zip FreeBSD-src-22ba6790838bbc14a95a6711a1cf074c8acaeec3.tar.gz |
Eliminate compiler warning.
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 ccab1ef..f645cb5 100644 --- a/sys/libkern/strtol.c +++ b/sys/libkern/strtol.c @@ -127,6 +127,6 @@ strtol(nptr, endptr, base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (char *)(any ? s - 1 : nptr); + *((const char **)endptr) = any ? s - 1 : nptr; return (acc); } diff --git a/sys/libkern/strtoq.c b/sys/libkern/strtoq.c index 846f995..a1bb4ff 100644 --- a/sys/libkern/strtoq.c +++ b/sys/libkern/strtoq.c @@ -128,6 +128,6 @@ strtoq(const char *nptr, char **endptr, int base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (char *)(any ? s - 1 : nptr); + *((const char **)endptr) = any ? s - 1 : nptr; return (acc); } diff --git a/sys/libkern/strtoul.c b/sys/libkern/strtoul.c index 78a70e2..b5973ef 100644 --- a/sys/libkern/strtoul.c +++ b/sys/libkern/strtoul.c @@ -106,6 +106,6 @@ strtoul(nptr, endptr, base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (char *)(any ? s - 1 : nptr); + *((const char **)endptr) = any ? s - 1 : nptr; return (acc); } diff --git a/sys/libkern/strtouq.c b/sys/libkern/strtouq.c index 43d11fe..7b6ca1a 100644 --- a/sys/libkern/strtouq.c +++ b/sys/libkern/strtouq.c @@ -106,6 +106,6 @@ strtouq(const char *nptr, char **endptr, int base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (char *)(any ? s - 1 : nptr); + *((const char **)endptr) = any ? s - 1 : nptr; return (acc); } |