summaryrefslogtreecommitdiff
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-21 21:50:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-21 21:50:47 +0000
commite43d7ce681593767afe835dff839f18adce836b4 (patch)
treeedc9573324413596b8e2b6c7cc1e581efa96a5a2 /usr.bin/sed
parente1341252a0e5d7d2b7d3d4b0788b708767f5998d (diff)
getc/ungetc use an int
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c
index 242b9a59791..89241f8a7f3 100644
--- a/usr.bin/sed/main.c
+++ b/usr.bin/sed/main.c
@@ -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.1 1995/10/18 08:46:05 deraadt Exp $";
+static char *rcsid = "$Id: main.c,v 1.2 1996/05/21 21:50:46 deraadt 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 */