diff options
| author | James Raynard <jraynard@FreeBSD.org> | 1996-06-22 10:34:15 +0000 |
|---|---|---|
| committer | James Raynard <jraynard@FreeBSD.org> | 1996-06-22 10:34:15 +0000 |
| commit | ce51cf0392a0b2cc80e5ddcdb01394a303093443 (patch) | |
| tree | dabe76e239303cbaa8026d6b9fa85fe1b5845601 /lib/libc/stdio/vfscanf.c | |
| parent | 55c148f316e1e2bbc7ac656d7f89144dd9dc34c0 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/vfscanf.c')
| -rw-r--r-- | lib/libc/stdio/vfscanf.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c index f975341a0206..35e7fbed7db5 100644 --- a/lib/libc/stdio/vfscanf.c +++ b/lib/libc/stdio/vfscanf.c @@ -35,7 +35,11 @@ */ #if defined(LIBC_SCCS) && !defined(lint) +#if 0 static char sccsid[] = "@(#)vfscanf.c 8.1 (Berkeley) 6/4/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -89,12 +93,13 @@ static char sccsid[] = "@(#)vfscanf.c 8.1 (Berkeley) 6/4/93"; #define u_char unsigned char #define u_long unsigned long -static u_char *__sccl(); +static u_char *__sccl(char *, u_char *); /* * vfscanf */ -int __svfscanf(fp, fmt0, ap) +int +__svfscanf(fp, fmt0, ap) register FILE *fp; char const *fmt0; va_list ap; @@ -346,7 +351,7 @@ literal: case CT_CCL: /* scan a (nonempty) character class (sets NOSKIP) */ if (width == 0) - width = ~0; /* `infinity' */ + width = (size_t)~0; /* `infinity' */ /* take only those things in the class */ if (flags & SUPPRESS) { n = 0; @@ -387,7 +392,7 @@ literal: case CT_STRING: /* like CCL, but zero-length string OK, & no NOSKIP */ if (width == 0) - width = ~0; + width = (size_t)~0; if (flags & SUPPRESS) { n = 0; while (!isspace(*fp->_p)) { |
