diff options
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)) { | 
