summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-05-21 21:50:46 +0000
committerderaadt <deraadt@openbsd.org>1996-05-21 21:50:46 +0000
commit3705df19b7f36dcb462402b1f166090fae82680a (patch)
tree5d734d0ccc943dc282de7b4cc7aa81f4e79509e5
parentavoid divide-by-zero trap when specifying small widths (diff)
downloadwireguard-openbsd-3705df19b7f36dcb462402b1f166090fae82680a.tar.xz
wireguard-openbsd-3705df19b7f36dcb462402b1f166090fae82680a.zip
getc/ungetc use an int
-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 1cc0e95bed2..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.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 */