diff options
author | 1996-05-21 21:50:46 +0000 | |
---|---|---|
committer | 1996-05-21 21:50:46 +0000 | |
commit | 3705df19b7f36dcb462402b1f166090fae82680a (patch) | |
tree | 5d734d0ccc943dc282de7b4cc7aa81f4e79509e5 | |
parent | avoid divide-by-zero trap when specifying small widths (diff) | |
download | wireguard-openbsd-3705df19b7f36dcb462402b1f166090fae82680a.tar.xz wireguard-openbsd-3705df19b7f36dcb462402b1f166090fae82680a.zip |
getc/ungetc use an int
-rw-r--r-- | usr.bin/sed/main.c | 5 |
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 */ |