From 628c52489fce4e129d14d36d586358f84e0e1ec1 Mon Sep 17 00:00:00 2001 From: charnier Date: Mon, 25 Aug 1997 06:44:59 +0000 Subject: Sync usage string according to man page. Silent -Wall. --- usr.bin/wc/wc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/wc/wc.c') 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); } -- cgit v1.1