summaryrefslogtreecommitdiffstats
path: root/sys/libkern/strtol.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1999-11-24 01:03:08 +0000
committerarchie <archie@FreeBSD.org>1999-11-24 01:03:08 +0000
commitd6eae9ff980dd5cb8c77eef5beb21a67fb84ac95 (patch)
tree5d5c85e2a99196d3f704d5a25197f1fa4f3081f2 /sys/libkern/strtol.c
parente060599533305d04d652d2f055850e47b7b69662 (diff)
downloadFreeBSD-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/strtol.c')
-rw-r--r--sys/libkern/strtol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/libkern/strtol.c b/sys/libkern/strtol.c
index 3b613f9..ccab1ef 100644
--- a/sys/libkern/strtol.c
+++ b/sys/libkern/strtol.c
@@ -52,7 +52,7 @@
long
strtol(nptr, endptr, base)
const char *nptr;
- const char **endptr;
+ char **endptr;
int base;
{
const char *s = nptr;
@@ -127,6 +127,6 @@ strtol(nptr, endptr, base)
} else if (neg)
acc = -acc;
if (endptr != 0)
- *endptr = (const char *)(any ? s - 1 : nptr);
+ *endptr = (char *)(any ? s - 1 : nptr);
return (acc);
}
OpenPOWER on IntegriCloud