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/fgetln.c | |
| parent | 55c148f316e1e2bbc7ac656d7f89144dd9dc34c0 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/fgetln.c')
| -rw-r--r-- | lib/libc/stdio/fgetln.c | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/lib/libc/stdio/fgetln.c b/lib/libc/stdio/fgetln.c index ea99f4d8b650..7c5742b908e1 100644 --- a/lib/libc/stdio/fgetln.c +++ b/lib/libc/stdio/fgetln.c @@ -35,7 +35,11 @@   */  #if defined(LIBC_SCCS) && !defined(lint) +#if 0  static char sccsid[] = "@(#)fgetln.c	8.2 (Berkeley) 1/2/94"; +#endif +static const char rcsid[] = +		"$Id$";  #endif /* LIBC_SCCS and not lint */  #include <stdio.h> @@ -50,7 +54,8 @@ static char sccsid[] = "@(#)fgetln.c	8.2 (Berkeley) 1/2/94";   * so we add 1 here.  #endif   */ -int __slbexpand(fp, newsize) +int +__slbexpand(fp, newsize)  	FILE *fp;  	size_t newsize;  { @@ -91,7 +96,7 @@ fgetln(fp, lenp)  	}  	/* look for a newline in the input */ -	if ((p = memchr((void *)fp->_p, '\n', fp->_r)) != NULL) { +	if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) != NULL) {  		register char *ret;  		/* @@ -133,7 +138,7 @@ fgetln(fp, lenp)  		off = len;  		if (__srefill(fp))  			break;	/* EOF or error: return partial line */ -		if ((p = memchr((void *)fp->_p, '\n', fp->_r)) == NULL) +		if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) == NULL)  			continue;  		/* got it: finish up the line (like code above) */ | 
