diff options
author | archie <archie@FreeBSD.org> | 1999-11-24 01:03:08 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1999-11-24 01:03:08 +0000 |
commit | d6eae9ff980dd5cb8c77eef5beb21a67fb84ac95 (patch) | |
tree | 5d5c85e2a99196d3f704d5a25197f1fa4f3081f2 /sys/libkern/strtoq.c | |
parent | e060599533305d04d652d2f055850e47b7b69662 (diff) | |
download | FreeBSD-src-d6eae9ff980dd5cb8c77eef5beb21a67fb84ac95.zip FreeBSD-src-d6eae9ff980dd5cb8c77eef5beb21a67fb84ac95.tar.gz |
Change the prototype of the strto* routines to make the second
parameter a char ** instead of a const char **. This make these
kernel routines consistent with the corresponding libc userland
routines.
Which is actually 'correct' is debatable, but consistency and
following the spec was deemed more important in this case.
Reviewed by (in concept): phk, bde
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); } |