Use an integer instead of a char with getc() and ungetc() in mf_fgets()

so that it works with compilers that default to unsigned chars
Note: getc() and ungetc() are prototyped to use ints rather than
chars.
This commit is contained in:
mark 1996-05-08 21:36:05 +00:00
parent 119686fe4f
commit 2754bf6ea9

View File

@ -43,7 +43,7 @@ static char copyright[] =
#ifndef lint
/* from: static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; */
static char *rcsid = "$Id: main.c,v 1.7 1995/02/23 17:25:23 jtc Exp $";
static char *rcsid = "$Id: main.c,v 1.8 1996/05/08 21:36:05 mark Exp $";
#endif /* not lint */
#include <sys/types.h>
@ -255,7 +255,8 @@ mf_fgets(sp, spflag)
{
static FILE *f; /* Current open file */
size_t len;
char c, *p;
char *p;
int c;
if (f == NULL)
/* Advance to first non-empty file */