diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-29 08:09:32 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-29 08:09:32 +0000 |
commit | 85d7bb85d5c7a47f4ed480fb27b3cb82ab455556 (patch) | |
tree | 06da2637f106d574de792fb1de9c52863975962f /sys | |
parent | 167a4cc1135af0f3ee3854cee931d086a97b1a0b (diff) | |
download | FreeBSD-src-85d7bb85d5c7a47f4ed480fb27b3cb82ab455556.zip FreeBSD-src-85d7bb85d5c7a47f4ed480fb27b3cb82ab455556.tar.gz |
cleanup warnings by propogating const char pointers properly.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_scanf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_scanf.c b/sys/kern/subr_scanf.c index fac7a59..b24d7ba 100644 --- a/sys/kern/subr_scanf.c +++ b/sys/kern/subr_scanf.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: subr_scanf.c,v 1.2 1999/01/27 21:36:14 dillon Exp $ + * $Id: subr_scanf.c,v 1.3 1999/01/28 00:57:47 dillon Exp $ * From: Id: vfscanf.c,v 1.13 1998/09/25 12:20:27 obrien Exp */ @@ -81,7 +81,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 *, char **, int); +typedef u_quad_t (*ccfntype)(const char *, const char **, int); #define isspace(c) ((c) == ' ' || (c) == '\t' || \ (c) == '\r' || (c) == '\n') @@ -514,7 +514,7 @@ literal: u_quad_t res; *p = 0; - res = (*ccfn)(buf, (char **)NULL, base); + res = (*ccfn)(buf, (const char **)NULL, base); if (flags & POINTER) *va_arg(ap, void **) = (void *)(u_long)res; |