diff options
Diffstat (limited to 'usr.bin/wc/wc.c')
-rw-r--r-- | usr.bin/wc/wc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c index 1670f1b..68ea08c 100644 --- a/usr.bin/wc/wc.c +++ b/usr.bin/wc/wc.c @@ -42,7 +42,7 @@ static const char copyright[] = static const char sccsid[] = "@(#)wc.c 8.1 (Berkeley) 6/6/93"; #else static const char rcsid[] = - "$Id: wc.c,v 1.6 1997/02/22 19:57:44 peter Exp $"; + "$Id: wc.c,v 1.7 1997/03/29 04:33:57 imp Exp $"; #endif #endif /* not lint */ @@ -153,7 +153,7 @@ cnt(file) * logic. */ if (doline) { - while (len = read(fd, buf, MAXBSIZE)) { + while ((len = read(fd, buf, MAXBSIZE))) { if (len == -1) { warn("%s: read", file); (void)close(fd); @@ -193,7 +193,7 @@ cnt(file) } /* Do it the hard way... */ -word: for (gotsp = 1; len = read(fd, buf, MAXBSIZE);) { +word: for (gotsp = 1; (len = read(fd, buf, MAXBSIZE));) { if (len == -1) { warn("%s: read", file); (void)close(fd); @@ -236,6 +236,6 @@ word: for (gotsp = 1; len = read(fd, buf, MAXBSIZE);) { void usage() { - (void)fprintf(stderr, "usage: wc [-clw] [files]\n"); + (void)fprintf(stderr, "usage: wc [-clw] [file ...]\n"); exit(1); } |