summaryrefslogtreecommitdiffstats
path: root/usr.bin/wc/wc.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-08-25 06:44:59 +0000
committercharnier <charnier@FreeBSD.org>1997-08-25 06:44:59 +0000
commit628c52489fce4e129d14d36d586358f84e0e1ec1 (patch)
tree48fc8593ed1012ad088044f2e9c3ce326f4d6305 /usr.bin/wc/wc.c
parentb4ee63a92723e7495e894006027dcded3328986e (diff)
downloadFreeBSD-src-628c52489fce4e129d14d36d586358f84e0e1ec1.zip
FreeBSD-src-628c52489fce4e129d14d36d586358f84e0e1ec1.tar.gz
Sync usage string according to man page. Silent -Wall.
Diffstat (limited to 'usr.bin/wc/wc.c')
-rw-r--r--usr.bin/wc/wc.c8
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);
}
OpenPOWER on IntegriCloud