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/kern/subr_scanf.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/kern/subr_scanf.c')
-rw-r--r-- | sys/kern/subr_scanf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_scanf.c b/sys/kern/subr_scanf.c index 824c88e..13f02b8 100644 --- a/sys/kern/subr_scanf.c +++ b/sys/kern/subr_scanf.c @@ -83,7 +83,7 @@ #define CT_CCL 1 /* %[...] conversion */ #define CT_STRING 2 /* %s conversion */ #define CT_INT 3 /* integer, i.e., strtoq or strtouq */ -typedef u_quad_t (*ccfntype)(const char *, const char **, int); +typedef u_quad_t (*ccfntype)(const char *, char **, int); static const u_char *__sccl(char *, const u_char *); @@ -508,7 +508,7 @@ literal: u_quad_t res; *p = 0; - res = (*ccfn)(buf, (const char **)NULL, base); + res = (*ccfn)(buf, (char **)NULL, base); if (flags & POINTER) *va_arg(ap, void **) = (void *)(uintptr_t)res; |