summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-17 13:34:46 +0000
committerJim Meyering <jim@meyering.net>2003-10-17 13:34:46 +0000
commitae7d7b4ad4fd1373c3e05da1e3572d90cfc1056b (patch)
treefc28813197d5d3b813b32d656326c8833d8b881e /src
parent43c89831d848a73462b65b60d7ef5cf9805a5cdc (diff)
downloadcoreutils-ae7d7b4ad4fd1373c3e05da1e3572d90cfc1056b.tar.xz
(main): Simply assign to bit_flags.
Don't bother with bit arithmetic.
Diffstat (limited to 'src')
-rw-r--r--src/du.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/du.c b/src/du.c
index d1ae5b732..58c799ab3 100644
--- a/src/du.c
+++ b/src/du.c
@@ -625,18 +625,15 @@ main (int argc, char **argv)
break;
case 'D': /* This will eventually be 'H' (-H), too. */
- bit_flags |= FTS_COMFOLLOW;
+ bit_flags = FTS_COMFOLLOW;
break;
- case 'P': /* --no-dereference */
- bit_flags |= FTS_PHYSICAL;
- bit_flags &= ~FTS_LOGICAL;
- bit_flags &= ~FTS_COMFOLLOW;
+ case 'L': /* --dereference */
+ bit_flags = FTS_LOGICAL;
break;
- case 'L': /* --dereference */
- bit_flags |= FTS_LOGICAL;
- bit_flags &= ~FTS_PHYSICAL;
+ case 'P': /* --no-dereference */
+ bit_flags = FTS_PHYSICAL;
break;
case 'S':