summaryrefslogtreecommitdiff
path: root/src/wc.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-02-05 14:53:10 +0100
committerJim Meyering <meyering@redhat.com>2009-02-05 14:53:10 +0100
commit8ed84c34388b3e475ece2f93ac22e25546503f16 (patch)
tree018dc7c9796f43fe17badf9d0c493e69764a130a /src/wc.c
parentc55c0e736926178d317027fb8c938c266d7b0ea3 (diff)
downloadcoreutils-8ed84c34388b3e475ece2f93ac22e25546503f16.tar.xz
avoid spurious parentheses/arith-op-related warnings from newer gcc
* src/copy.c (set_owner): Use && rather than &. * src/stty.c (main): Likewise. * src/wc.c (wc): Likewise.
Diffstat (limited to 'src/wc.c')
-rw-r--r--src/wc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wc.c b/src/wc.c
index b1afe1495..e6ffd1a58 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -1,5 +1,5 @@
/* wc - print the number of lines, words, and bytes in files
- Copyright (C) 85, 91, 1995-2008 Free Software Foundation, Inc.
+ Copyright (C) 85, 91, 1995-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -249,7 +249,7 @@ wc (int fd, char const *file_x, struct fstatus *fstatus)
}
}
}
- else if (!count_chars & !count_complicated)
+ else if (!count_chars && !count_complicated)
{
/* Use a separate loop when counting only lines or lines and bytes --
but not chars or words. */