Correct the Unix programmer's error #1: "char c = getc();".
Closes PR # bin/1386: lpf Text Filter does not w... Submitted by: andreas@marvin.RoBIN.de
This commit is contained in:
parent
706b948138
commit
35ab66af3b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17202
@ -38,7 +38,8 @@ static char copyright[] =
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)lpf.c 8.1 (Berkeley) 6/6/93";
|
||||
static char sccsid[] = "From: @(#)lpf.c 8.1 (Berkeley) 6/6/93";
|
||||
static char id[] = "$Id$";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -79,7 +80,8 @@ main(argc, argv)
|
||||
register int i, col;
|
||||
register char *cp;
|
||||
int done, linedone, maxrep;
|
||||
char ch, *limit;
|
||||
char *limit;
|
||||
int ch;
|
||||
|
||||
while (--argc) {
|
||||
if (*(cp = *++argv) == '-') {
|
||||
|
Loading…
Reference in New Issue
Block a user